Commit 0a92de62 by Oleg Gaidarenko Committed by GitHub

Build(package.json): improve npm commands (#17022)

Remove some of the repetitions in the npm commands
parent fd741cbe
...@@ -140,9 +140,9 @@ ...@@ -140,9 +140,9 @@
}, },
"scripts": { "scripts": {
"dev": "webpack --progress --colors --mode development --config scripts/webpack/webpack.dev.js", "dev": "webpack --progress --colors --mode development --config scripts/webpack/webpack.dev.js",
"start": "ts-node --project ./scripts/cli/tsconfig.json ./scripts/cli/index.ts core:start --watchTheme", "start": "npm run cli -- core:start --watchTheme",
"start:hot": "ts-node --project ./scripts/cli/tsconfig.json ./scripts/cli/index.ts core:start --hot --watchTheme", "start:hot": "npm run cli -- core:start --hot --watchTheme",
"start:ignoreTheme": "ts-node --project ./scripts/cli/tsconfig.json ./scripts/cli/index.ts core:start --hot", "start:ignoreTheme": "npm run cli -- core:start --hot",
"watch": "yarn start -d watch,start core:start --watchTheme ", "watch": "yarn start -d watch,start core:start --watchTheme ",
"build": "grunt build", "build": "grunt build",
"test": "grunt test", "test": "grunt test",
...@@ -156,13 +156,13 @@ ...@@ -156,13 +156,13 @@
"themes:generate": "ts-node --project ./scripts/cli/tsconfig.json ./scripts/cli/generateSassVariableFiles.ts", "themes:generate": "ts-node --project ./scripts/cli/tsconfig.json ./scripts/cli/generateSassVariableFiles.ts",
"prettier:check": "prettier --list-different \"**/*.{ts,tsx,scss}\"", "prettier:check": "prettier --list-different \"**/*.{ts,tsx,scss}\"",
"prettier:write": "prettier --list-different \"**/*.{ts,tsx,scss}\" --write", "prettier:write": "prettier --list-different \"**/*.{ts,tsx,scss}\" --write",
"cli": "ts-node --project ./scripts/cli/tsconfig.json ./scripts/cli/index.ts",
"gui:tslint": "tslint -c ./packages/grafana-ui/tslint.json --project ./packages/grafana-ui/tsconfig.json", "gui:tslint": "tslint -c ./packages/grafana-ui/tslint.json --project ./packages/grafana-ui/tsconfig.json",
"gui:build": "ts-node --project ./scripts/cli/tsconfig.json ./scripts/cli/index.ts gui:build", "gui:build": "npm run cli -- gui:build",
"gui:releasePrepare": "ts-node --project ./scripts/cli/tsconfig.json ./scripts/cli/index.ts gui:release", "gui:releasePrepare": "npm run cli -- gui:release",
"gui:publish": "cd packages/grafana-ui/dist && npm publish --access public", "gui:publish": "cd packages/grafana-ui/dist && npm publish --access public",
"gui:release": "ts-node --project ./scripts/cli/tsconfig.json ./scripts/cli/index.ts gui:release -p --createVersionCommit", "gui:release": "npm run cli -- gui:release -p --createVersionCommit",
"precommit": "ts-node --project ./scripts/cli/tsconfig.json ./scripts/cli/index.ts precommit", "precommit": "npm run cli -- precommit"
"cli": "ts-node --project ./scripts/cli/tsconfig.json ./scripts/cli/index.ts"
}, },
"husky": { "husky": {
"hooks": { "hooks": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment