mirror of
https://github.com/grafana/grafana.git
synced 2024-12-25 08:21:46 -06:00
5361efc225
* Switch from lingui from i18next * Change lingui messages to i18next messages * Change lingui messages to i18next messages (grafana-ui) * Init i18n for tests
432 lines
16 KiB
JSON
432 lines
16 KiB
JSON
{
|
|
"author": "Grafana Labs",
|
|
"license": "AGPL-3.0-only",
|
|
"private": true,
|
|
"name": "grafana",
|
|
"version": "9.3.0-pre",
|
|
"repository": "github:grafana/grafana",
|
|
"scripts": {
|
|
"api-tests": "jest --notify --watch --config=devenv/e2e-api-tests/jest.js",
|
|
"build": "yarn i18n:compile && NODE_ENV=production webpack --config scripts/webpack/webpack.prod.js",
|
|
"build:nominify": "yarn run build --env noMinify=1",
|
|
"dev": "yarn i18n:compile && webpack --progress --color --config scripts/webpack/webpack.dev.js",
|
|
"e2e": "./e2e/start-and-run-suite",
|
|
"e2e:debug": "./e2e/start-and-run-suite debug",
|
|
"e2e:dev": "./e2e/start-and-run-suite dev",
|
|
"e2e:benchmark:live": "./e2e/start-and-run-suite benchmark live",
|
|
"test": "jest --notify --watch",
|
|
"test:coverage": "jest --coverage",
|
|
"test:coverage:changes": "jest --coverage --changedSince=origin/main",
|
|
"test:accessibility-report": "./scripts/generate-a11y-report.sh",
|
|
"lint": "yarn run lint:ts && yarn run lint:sass",
|
|
"lint:ts": "eslint . --ext .js,.tsx,.ts --cache",
|
|
"lint:sass": "yarn stylelint '{public/sass,packages}/**/*.scss' --cache",
|
|
"test:ci": "yarn i18n:compile && mkdir -p reports/junit && JEST_JUNIT_OUTPUT_DIR=reports/junit jest --ci --reporters=default --reporters=jest-junit -w ${TEST_MAX_WORKERS:-100%}",
|
|
"lint:fix": "yarn lint:ts --fix",
|
|
"packages:build": "lerna run build --ignore @grafana-plugins/input-datasource",
|
|
"packages:clean": "lerna run clean --parallel",
|
|
"packages:prepare": "lerna version --no-push --no-git-tag-version --force-publish --exact",
|
|
"packages:pack": "lerna exec --no-private -- yarn pack",
|
|
"packages:publish": "lerna exec --no-private -- npm publish package.tgz",
|
|
"packages:publishCanary": "lerna exec --no-private -- npm publish package.tgz --tag canary",
|
|
"packages:publishLatest": "lerna exec --no-private -- npm publish package.tgz",
|
|
"packages:publishNext": "lerna exec --no-private -- npm publish package.tgz --tag next",
|
|
"packages:publishTest": "lerna exec --no-private -- npm publish package.tgz --tag test",
|
|
"packages:publishDev": "lerna exec --no-private -- npm publish package.tgz --tag dev --registry http://localhost:4873",
|
|
"packages:typecheck": "lerna run typecheck",
|
|
"precommit": "yarn run lint-staged",
|
|
"prettier:check": "prettier --check --list-different=false --loglevel=warn \"**/*.{ts,tsx,scss,md,mdx}\"",
|
|
"prettier:checkDocs": "prettier --check --list-different=false --loglevel=warn \"docs/**/*.md\" \"*.md\" \"packages/**/*.{ts,tsx,scss,md,mdx}\"",
|
|
"prettier:write": "prettier --list-different \"**/*.{js,ts,tsx,scss,md,mdx}\" --write",
|
|
"start": "yarn themes:generate && yarn dev --watch",
|
|
"start:noTsCheck": "yarn start --env noTsCheck=1",
|
|
"start:hot": "yarn themes:generate && NODE_ENV=hot yarn dev --config scripts/webpack/webpack.hot.js",
|
|
"stats": "webpack --mode production --config scripts/webpack/webpack.prod.js --profile --json > compilation-stats.json",
|
|
"storybook": "yarn workspace @grafana/ui storybook --ci",
|
|
"storybook:build": "yarn workspace @grafana/ui storybook:build",
|
|
"themes:generate": "ts-node --transpile-only --project ./scripts/cli/tsconfig.json ./scripts/cli/generateSassVariableFiles.ts",
|
|
"typecheck": "tsc --noEmit && yarn run packages:typecheck",
|
|
"plugins:build-bundled": "grafana-toolkit plugin:bundle-managed",
|
|
"watch": "yarn start -d watch,start core:start --watchTheme",
|
|
"ci:test-frontend": "yarn run test:ci && yarn grafana-toolkit node-version-check",
|
|
"postinstall": "husky install",
|
|
"i18n:extract": "yarn run i18next -c public/locales/i18next-parser.config.js 'public/**/*.{tsx,ts}' 'packages/grafana-ui/**/*.{tsx,ts}' && node ./public/locales/psuedo.js",
|
|
"i18n:compile": "echo 'no i18n compile yet, all good'",
|
|
"betterer": "betterer",
|
|
"betterer:merge": "betterer merge",
|
|
"betterer:stats": "ts-node --transpile-only --project ./scripts/cli/tsconfig.json ./scripts/cli/reportBettererStats.ts"
|
|
},
|
|
"grafana": {
|
|
"whatsNewUrl": "https://grafana.com/docs/grafana/next/whatsnew/whats-new-in-v9-2/",
|
|
"releaseNotesUrl": "https://grafana.com/docs/grafana/next/release-notes/"
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,ts,tsx}": [
|
|
"betterer precommit",
|
|
"eslint --ext .js,.tsx,.ts --cache --fix",
|
|
"prettier --write"
|
|
],
|
|
"*.{json,scss,md,mdx}": [
|
|
"prettier --write"
|
|
],
|
|
"*pkg/**/*.go": [
|
|
"gofmt -w -s"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "7.19.0",
|
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
"@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6",
|
|
"@babel/plugin-proposal-object-rest-spread": "7.18.9",
|
|
"@babel/plugin-proposal-optional-chaining": "7.18.9",
|
|
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
|
"@babel/plugin-transform-react-constant-elements": "7.18.9",
|
|
"@babel/plugin-transform-runtime": "7.19.1",
|
|
"@babel/plugin-transform-typescript": "7.19.0",
|
|
"@babel/preset-env": "7.19.0",
|
|
"@babel/preset-react": "7.18.6",
|
|
"@babel/preset-typescript": "7.18.6",
|
|
"@babel/runtime": "7.19.0",
|
|
"@betterer/betterer": "5.4.0",
|
|
"@betterer/cli": "5.4.0",
|
|
"@betterer/eslint": "5.4.0",
|
|
"@betterer/regexp": "5.4.0",
|
|
"@emotion/eslint-plugin": "11.7.0",
|
|
"@grafana/e2e": "workspace:*",
|
|
"@grafana/eslint-config": "5.0.0",
|
|
"@grafana/toolkit": "workspace:*",
|
|
"@grafana/tsconfig": "^1.2.0-rc1",
|
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.7",
|
|
"@react-types/button": "3.6.1",
|
|
"@react-types/menu": "3.7.1",
|
|
"@react-types/overlays": "3.6.1",
|
|
"@react-types/shared": "3.14.1",
|
|
"@rtsao/plugin-proposal-class-properties": "7.0.1-patch.1",
|
|
"@swc/core": "1.3.1",
|
|
"@swc/helpers": "0.4.3",
|
|
"@testing-library/dom": "8.13.0",
|
|
"@testing-library/jest-dom": "5.16.4",
|
|
"@testing-library/react": "12.1.4",
|
|
"@testing-library/react-hooks": "8.0.1",
|
|
"@testing-library/user-event": "14.4.3",
|
|
"@types/angular": "1.8.4",
|
|
"@types/angular-route": "1.7.2",
|
|
"@types/classnames": "2.3.0",
|
|
"@types/common-tags": "^1.8.0",
|
|
"@types/d3": "7.4.0",
|
|
"@types/d3-force": "^2.1.0",
|
|
"@types/d3-scale-chromatic": "1.3.1",
|
|
"@types/debounce-promise": "3.1.4",
|
|
"@types/enzyme": "3.10.12",
|
|
"@types/enzyme-adapter-react-16": "1.0.6",
|
|
"@types/eslint": "8.4.5",
|
|
"@types/file-saver": "2.0.5",
|
|
"@types/google.analytics": "^0.0.42",
|
|
"@types/gtag.js": "^0.0.11",
|
|
"@types/history": "4.7.11",
|
|
"@types/hoist-non-react-statics": "3.3.1",
|
|
"@types/jest": "28.1.6",
|
|
"@types/jquery": "3.5.14",
|
|
"@types/js-yaml": "^4.0.5",
|
|
"@types/jsurl": "^1.2.28",
|
|
"@types/lodash": "4.14.182",
|
|
"@types/logfmt": "^1.2.1",
|
|
"@types/mousetrap": "1.6.9",
|
|
"@types/node": "16.11.45",
|
|
"@types/ol-ext": "npm:@siedlerchr/types-ol-ext@2.3.0",
|
|
"@types/papaparse": "5.3.2",
|
|
"@types/pluralize": "^0.0.29",
|
|
"@types/prismjs": "1.26.0",
|
|
"@types/rc-time-picker": "3.4.1",
|
|
"@types/react": "17.0.42",
|
|
"@types/react-beautiful-dnd": "13.1.2",
|
|
"@types/react-dom": "17.0.14",
|
|
"@types/react-grid-layout": "1.3.2",
|
|
"@types/react-highlight-words": "0.16.4",
|
|
"@types/react-redux": "7.1.24",
|
|
"@types/react-router-dom": "5.3.3",
|
|
"@types/react-table": "7.7.12",
|
|
"@types/react-test-renderer": "17.0.1",
|
|
"@types/react-transition-group": "4.4.5",
|
|
"@types/react-virtualized-auto-sizer": "1.0.1",
|
|
"@types/react-window": "1.8.5",
|
|
"@types/react-window-infinite-loader": "^1",
|
|
"@types/redux-mock-store": "1.0.3",
|
|
"@types/reselect": "2.2.0",
|
|
"@types/semver": "7.3.10",
|
|
"@types/slate": "0.47.9",
|
|
"@types/slate-plain-serializer": "0.7.2",
|
|
"@types/slate-react": "0.22.9",
|
|
"@types/testing-library__jest-dom": "5.14.5",
|
|
"@types/testing-library__react-hooks": "^3.2.0",
|
|
"@types/tinycolor2": "1.4.3",
|
|
"@types/uuid": "8.3.4",
|
|
"@typescript-eslint/eslint-plugin": "5.36.2",
|
|
"@typescript-eslint/parser": "5.36.2",
|
|
"@wojtekmaj/enzyme-adapter-react-17": "0.6.7",
|
|
"autoprefixer": "10.4.7",
|
|
"axios": "0.27.2",
|
|
"babel-jest": "28.1.3",
|
|
"babel-loader": "8.2.5",
|
|
"babel-plugin-angularjs-annotate": "0.10.0",
|
|
"babel-plugin-macros": "3.1.0",
|
|
"blob-polyfill": "7.0.20220408",
|
|
"copy-webpack-plugin": "9.0.1",
|
|
"css-loader": "6.7.1",
|
|
"css-minimizer-webpack-plugin": "4.2.0",
|
|
"cypress": "9.5.1",
|
|
"enzyme": "3.11.0",
|
|
"enzyme-to-json": "3.6.2",
|
|
"eslint": "8.24.0",
|
|
"eslint-config-prettier": "8.5.0",
|
|
"eslint-plugin-import": "^2.26.0",
|
|
"eslint-plugin-jest": "26.6.0",
|
|
"eslint-plugin-jsdoc": "39.3.3",
|
|
"eslint-plugin-jsx-a11y": "6.6.1",
|
|
"eslint-plugin-lodash": "7.4.0",
|
|
"eslint-plugin-react": "7.31.0",
|
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
"eslint-webpack-plugin": "3.2.0",
|
|
"expose-loader": "4.0.0",
|
|
"file-loader": "6.2.0",
|
|
"fork-ts-checker-webpack-plugin": "7.2.13",
|
|
"fs-extra": "10.1.0",
|
|
"glob": "8.0.3",
|
|
"html-loader": "4.2.0",
|
|
"html-webpack-plugin": "5.5.0",
|
|
"http-server": "14.1.1",
|
|
"husky": "8.0.1",
|
|
"i18next-parser": "6.5.0",
|
|
"jest": "28.1.3",
|
|
"jest-canvas-mock": "2.4.0",
|
|
"jest-date-mock": "1.0.8",
|
|
"jest-environment-jsdom": "28.1.3",
|
|
"jest-fail-on-console": "2.4.2",
|
|
"jest-junit": "14.0.0",
|
|
"jest-matcher-utils": "28.1.3",
|
|
"lerna": "5.5.4",
|
|
"lint-staged": "13.0.3",
|
|
"mini-css-extract-plugin": "2.6.1",
|
|
"msw": "^0.47.3",
|
|
"mutationobserver-shim": "0.3.7",
|
|
"ngtemplate-loader": "2.1.0",
|
|
"node-notifier": "10.0.1",
|
|
"postcss": "8.4.14",
|
|
"postcss-loader": "7.0.1",
|
|
"postcss-reporter": "7.0.5",
|
|
"postcss-scss": "4.0.4",
|
|
"prettier": "2.7.1",
|
|
"raw-loader": "4.0.2",
|
|
"react-refresh": "0.14.0",
|
|
"react-select-event": "5.5.0",
|
|
"react-simple-compat": "1.2.3",
|
|
"react-test-renderer": "17.0.2",
|
|
"redux-mock-store": "1.5.4",
|
|
"rimraf": "3.0.2",
|
|
"rudder-sdk-js": "2.15.0",
|
|
"sass": "1.55.0",
|
|
"sass-loader": "13.0.2",
|
|
"sinon": "14.0.0",
|
|
"style-loader": "3.3.1",
|
|
"stylelint": "14.9.1",
|
|
"stylelint-config-prettier": "9.0.3",
|
|
"stylelint-config-sass-guidelines": "9.0.1",
|
|
"terser-webpack-plugin": "5.3.3",
|
|
"testing-library-selector": "0.2.1",
|
|
"ts-jest": "28.0.7",
|
|
"ts-loader": "9.3.1",
|
|
"ts-node": "10.9.1",
|
|
"typescript": "4.8.2",
|
|
"wait-on": "6.0.1",
|
|
"webpack": "5.74.0",
|
|
"webpack-bundle-analyzer": "4.5.0",
|
|
"webpack-cli": "4.10.0",
|
|
"webpack-dev-server": "4.9.3",
|
|
"webpack-manifest-plugin": "5.0.0",
|
|
"webpack-merge": "5.8.0"
|
|
},
|
|
"dependencies": {
|
|
"@daybrush/utils": "1.10.0",
|
|
"@emotion/css": "11.9.0",
|
|
"@emotion/react": "11.9.3",
|
|
"@grafana/agent-core": "0.4.0",
|
|
"@grafana/agent-web": "0.4.0",
|
|
"@grafana/aws-sdk": "0.0.37",
|
|
"@grafana/data": "workspace:*",
|
|
"@grafana/e2e-selectors": "workspace:*",
|
|
"@grafana/experimental": "^0.0.2-canary.36",
|
|
"@grafana/google-sdk": "0.0.3",
|
|
"@grafana/lezer-logql": "0.1.1",
|
|
"@grafana/monaco-logql": "^0.0.6",
|
|
"@grafana/runtime": "workspace:*",
|
|
"@grafana/schema": "workspace:*",
|
|
"@grafana/ui": "workspace:*",
|
|
"@jaegertracing/jaeger-ui-components": "workspace:*",
|
|
"@kusto/monaco-kusto": "5.2.0",
|
|
"@leeoniya/ufuzzy": "0.7.0",
|
|
"@lezer/common": "1.0.0",
|
|
"@lezer/highlight": "^1.0.0",
|
|
"@lezer/lr": "1.2.3",
|
|
"@opentelemetry/api": "1.2.0",
|
|
"@opentelemetry/exporter-collector": "0.25.0",
|
|
"@opentelemetry/semantic-conventions": "1.7.0",
|
|
"@popperjs/core": "2.11.5",
|
|
"@prometheus-io/lezer-promql": "^0.37.0-rc.1",
|
|
"@react-aria/button": "3.6.1",
|
|
"@react-aria/dialog": "3.3.1",
|
|
"@react-aria/focus": "3.8.0",
|
|
"@react-aria/interactions": "3.11.0",
|
|
"@react-aria/menu": "3.6.1",
|
|
"@react-aria/overlays": "3.10.1",
|
|
"@react-aria/utils": "3.13.1",
|
|
"@react-stately/collections": "3.4.1",
|
|
"@react-stately/menu": "3.4.1",
|
|
"@react-stately/tree": "3.3.1",
|
|
"@reduxjs/toolkit": "1.8.5",
|
|
"@sentry/browser": "6.19.7",
|
|
"@sentry/types": "6.19.7",
|
|
"@sentry/utils": "6.19.7",
|
|
"@types/rc-tree": "^3.0.0",
|
|
"@types/react-resizable": "3.0.2",
|
|
"@types/webpack-env": "1.18.0",
|
|
"@visx/event": "2.6.0",
|
|
"@visx/gradient": "2.10.0",
|
|
"@visx/group": "2.10.0",
|
|
"@visx/scale": "2.2.2",
|
|
"@visx/shape": "2.12.2",
|
|
"@visx/tooltip": "2.10.0",
|
|
"@welldone-software/why-did-you-render": "7.0.1",
|
|
"angular": "1.8.3",
|
|
"angular-bindonce": "0.3.1",
|
|
"angular-route": "1.8.3",
|
|
"angular-sanitize": "1.8.3",
|
|
"ansicolor": "1.1.100",
|
|
"app": "link:./public/app",
|
|
"baron": "3.0.3",
|
|
"brace": "0.11.1",
|
|
"calculate-size": "1.1.1",
|
|
"centrifuge": "3.0.1",
|
|
"classnames": "2.3.1",
|
|
"comlink": "4.3.1",
|
|
"common-tags": "1.8.2",
|
|
"core-js": "3.25.1",
|
|
"d3": "5.15.0",
|
|
"d3-force": "^2.1.1",
|
|
"d3-scale-chromatic": "1.5.0",
|
|
"dangerously-set-html-content": "1.0.9",
|
|
"date-fns": "2.29.1",
|
|
"debounce-promise": "3.1.2",
|
|
"emotion": "11.0.0",
|
|
"eventemitter3": "4.0.7",
|
|
"fast-deep-equal": "^3.1.3",
|
|
"fast-json-patch": "3.1.1",
|
|
"file-saver": "2.0.5",
|
|
"framework-utils": "^1.1.0",
|
|
"history": "4.10.1",
|
|
"hoist-non-react-statics": "3.3.2",
|
|
"i18next": "^21.9.2",
|
|
"immer": "9.0.15",
|
|
"immutable": "4.1.0",
|
|
"jquery": "3.6.0",
|
|
"js-yaml": "^4.1.0",
|
|
"json-source-map": "0.6.1",
|
|
"jsurl": "^0.1.5",
|
|
"kbar": "0.1.0-beta.36",
|
|
"lodash": "4.17.21",
|
|
"logfmt": "^1.3.2",
|
|
"lru-cache": "7.14.0",
|
|
"memoize-one": "6.0.0",
|
|
"moment": "2.29.4",
|
|
"moment-timezone": "0.5.35",
|
|
"monaco-editor": "0.34.0",
|
|
"monaco-promql": "1.7.4",
|
|
"mousetrap": "1.6.5",
|
|
"mousetrap-global-bind": "1.1.0",
|
|
"moveable": "0.35.4",
|
|
"ol": "6.15.1",
|
|
"ol-ext": "3.2.28",
|
|
"papaparse": "5.3.2",
|
|
"pluralize": "^8.0.0",
|
|
"prismjs": "1.29.0",
|
|
"prop-types": "15.8.1",
|
|
"pseudoizer": "^0.1.0",
|
|
"rc-cascader": "3.7.0",
|
|
"rc-drawer": "4.4.3",
|
|
"rc-slider": "9.7.5",
|
|
"rc-time-picker": "3.7.3",
|
|
"rc-tree": "5.7.0",
|
|
"re-resizable": "6.9.9",
|
|
"react": "17.0.2",
|
|
"react-awesome-query-builder": "5.3.1",
|
|
"react-beautiful-dnd": "13.1.0",
|
|
"react-diff-viewer": "^3.1.1",
|
|
"react-dom": "17.0.2",
|
|
"react-draggable": "4.4.5",
|
|
"react-grid-layout": "1.3.4",
|
|
"react-highlight-words": "0.18.0",
|
|
"react-hook-form": "7.5.3",
|
|
"react-i18next": "^11.18.6",
|
|
"react-inlinesvg": "3.0.0",
|
|
"react-moveable": "0.38.4",
|
|
"react-popper": "2.3.0",
|
|
"react-popper-tooltip": "4.4.2",
|
|
"react-redux": "7.2.6",
|
|
"react-resizable": "3.0.4",
|
|
"react-reverse-portal": "2.1.1",
|
|
"react-router-dom": "^5.2.0",
|
|
"react-select": "5.4.0",
|
|
"react-split-pane": "0.1.92",
|
|
"react-table": "7.8.0",
|
|
"react-transition-group": "4.4.2",
|
|
"react-use": "17.4.0",
|
|
"react-virtualized-auto-sizer": "1.0.6",
|
|
"react-window": "1.8.7",
|
|
"react-window-infinite-loader": "1.0.8",
|
|
"redux": "4.2.0",
|
|
"redux-thunk": "2.4.1",
|
|
"regenerator-runtime": "0.13.9",
|
|
"reselect": "4.1.6",
|
|
"rst2html": "github:thoward/rst2html#990cb89f2a300cdd9151790be377c4c0840df809",
|
|
"rxjs": "7.5.6",
|
|
"sass": "link:./public/sass",
|
|
"selecto": "1.20.2",
|
|
"semver": "7.3.7",
|
|
"slate": "0.47.9",
|
|
"slate-plain-serializer": "0.7.11",
|
|
"slate-react": "0.22.10",
|
|
"sql-formatter-plus": "^1.3.6",
|
|
"symbol-observable": "4.0.0",
|
|
"test": "link:./public/test",
|
|
"tether-drop": "https://github.com/torkelo/drop",
|
|
"tinycolor2": "1.4.2",
|
|
"tslib": "2.4.0",
|
|
"uplot": "1.6.22",
|
|
"uuid": "8.3.2",
|
|
"vendor": "link:./public/vendor",
|
|
"visjs-network": "4.25.0",
|
|
"whatwg-fetch": "3.6.2"
|
|
},
|
|
"resolutions": {
|
|
"underscore": "1.13.4",
|
|
"@types/slate": "0.47.9",
|
|
"@rushstack/node-core-library": "3.53.0",
|
|
"@rushstack/rig-package": "0.3.13",
|
|
"@rushstack/ts-command-line": "4.12.1",
|
|
"@storybook/builder-webpack5/webpack": "5.74.0",
|
|
"@storybook/manager-webpack5/webpack": "5.74.0",
|
|
"node-fetch": "2.6.7",
|
|
"slate-dev-environment@^0.2.2": "patch:slate-dev-environment@npm:0.2.5#.yarn/patches/slate-dev-environment-npm-0.2.5-9aeb7da7b5.patch",
|
|
"storybook-dark-mode@1.1.2": "patch:storybook-dark-mode@npm%3A1.1.2#./.yarn/patches/storybook-dark-mode-npm-1.1.2-ecc4605688.patch"
|
|
},
|
|
"workspaces": {
|
|
"packages": [
|
|
"packages/*",
|
|
"plugins-bundled/internal/*"
|
|
]
|
|
},
|
|
"engines": {
|
|
"node": ">= 16"
|
|
},
|
|
"packageManager": "yarn@3.2.3"
|
|
}
|