Skip to content

Commit

Permalink
chore: install and configure augurs
Browse files Browse the repository at this point in the history
  • Loading branch information
matyax committed Jul 4, 2024
1 parent 410746d commit 602d3dc
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.0.13",
"description": "Query less exploration of log data stored in Loki",
"scripts": {
"build": "webpack -c ./.config/webpack/webpack.config.ts --env production",
"dev": "webpack -w -c ./.config/webpack/webpack.config.ts --env development",
"build": "webpack -c ./webpack.config.ts --env production",
"dev": "webpack -w -c ./webpack.config.ts --env development",
"test": "jest --watch --onlyChanged",
"test:ci": "jest --passWithNoTests --maxWorkers 4",
"typecheck": "tsc --noEmit",
Expand Down Expand Up @@ -73,6 +73,7 @@
"node": ">=20"
},
"dependencies": {
"@bsull/augurs": "^0.2.0",
"@emotion/css": "^11.10.6",
"@grafana/data": "^11.0.0",
"@grafana/runtime": "^11.0.0",
Expand Down
4 changes: 4 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { AppPlugin } from '@grafana/data';
import { App } from 'Components/App';
import init from '@bsull/augurs';

// eslint-disable-next-line no-console
init().then(() => console.debug('Grafana ML initialized'));

export const plugin = new AppPlugin<{}>().setRootPage(App);
15 changes: 15 additions & 0 deletions webpack.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import type { Configuration } from 'webpack';
import { merge } from 'webpack-merge';
import grafanaConfig from './.config/webpack/webpack.config';

const config = async (env): Promise<Configuration> => {
const baseConfig = await grafanaConfig(env);
return merge(baseConfig, {
experiments: {
// Required to load WASM modules.
asyncWebAssembly: true,
},
});
};

export default config;
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,11 @@
resolved "https://registry.yarnpkg.com/@braintree/sanitize-url/-/sanitize-url-7.0.1.tgz#457233b0a18741b7711855044102b82bae7a070b"
integrity sha512-URg8UM6lfC9ZYqFipItRSxYJdgpU5d2Z4KnjsJ+rj6tgAmGme7E+PQNCiud8g0HDaZKMovu2qjfa0f5Ge0Vlsg==

"@bsull/augurs@^0.2.0":
version "0.2.0"
resolved "https://registry.yarnpkg.com/@bsull/augurs/-/augurs-0.2.0.tgz#71fcec248493cb9ee2d473dd4b8a8bb1c320932e"
integrity sha512-HyxFkWxHgSgvCuiCyan9JqWaMbEvgVGAryoorkZ/fbwV1SV0J+fuVgaGCRfzYH15lVGR3fFWVjhYY0zZfjKHng==

"@commitlint/cli@^19.2.2":
version "19.2.2"
resolved "https://registry.yarnpkg.com/@commitlint/cli/-/cli-19.2.2.tgz#7b6d78596dcf6d716942b147aa07c04c4ee126df"
Expand Down

0 comments on commit 602d3dc

Please sign in to comment.