Toolkit: moved front end cli scripts to separate package and introduced very…
Toolkit: moved front end cli scripts to separate package and introduced very early version of plugin tools * Move cli to grafana-toolkit * Moving packages, fixing ts * Add basics of plugin build task * Add toolkit build task * Circle - use node 10 for test-frontend * Prettier fix * First attempt for having shared tsconfig for plugins * Add enzyme as peer depencency * Do not expose internal commands when using toolkit from npm package * Introduce plugin linting * Fix missing file * Fix shim extenstion * Remove rollup typings * Add tslint as dependency * Toolkit - use the same versions of enzyme and tslint as core does * Remove include property from plugin tsconfig * Take failed suites into consideration when tests failed * Set ts-jest preset for jest * Cleanup tsconfig.plugins * Add plugin:test task * Rename file causing build failute * Fixing those missed renames * Add ts as peer dependency * Remove enzyme dependency and tweak test plugin task * Allow jest options overrides via package.json config * Improvements * Remove rollup node packages * TMP : Fix ts errors when linked * use local tslint if it exists * support coverage commands * Fix merge * fix build * Some minors * Make jest pass when no tests discovered
Showing
... | ... | @@ -19,14 +19,11 @@ |
"@emotion/core": "10.0.10", | ||
"@rtsao/plugin-proposal-class-properties": "7.0.1-patch.1", | ||
"@types/angular": "1.6.54", | ||
"@types/chalk": "2.2.0", | ||
"@types/classnames": "2.2.7", | ||
"@types/clipboard": "2.0.1", | ||
"@types/commander": "2.12.2", | ||
"@types/d3": "4.13.1", | ||
"@types/enzyme": "3.9.0", | ||
"@types/expect-puppeteer": "3.3.1", | ||
"@types/inquirer": "0.0.43", | ||
"@types/jest": "24.0.13", | ||
"@types/jquery": "1.10.35", | ||
"@types/lodash": "4.14.123", | ||
... | ... | @@ -49,16 +46,13 @@ |
"babel-jest": "24.8.0", | ||
"babel-loader": "8.0.5", | ||
"babel-plugin-angularjs-annotate": "0.10.0", | ||
"chalk": "2.4.2", | ||
"clean-webpack-plugin": "2.0.0", | ||
"concurrently": "4.1.0", | ||
"css-loader": "2.1.1", | ||
"enzyme": "3.9.0", | ||
"enzyme-adapter-react-16": "1.11.2", | ||
"enzyme-to-json": "3.3.5", | ||
"es6-promise": "3.3.1", | ||
"es6-shim": "0.35.5", | ||
"execa": "1.0.0", | ||
"expect-puppeteer": "4.1.1", | ||
"expect.js": "0.2.0", | ||
"expose-loader": "0.7.5", | ||
... | ... | @@ -83,7 +77,6 @@ |
"html-webpack-harddisk-plugin": "1.0.1", | ||
"html-webpack-plugin": "3.2.0", | ||
"husky": "1.3.1", | ||
"inquirer": "6.2.2", | ||
"jest": "24.8.0", | ||
"jest-date-mock": "1.0.7", | ||
"lint-staged": "8.1.5", | ||
... | ... | @@ -98,7 +91,6 @@ |
"node-sass": "4.11.0", | ||
"npm": "6.9.0", | ||
"optimize-css-assets-webpack-plugin": "5.0.1", | ||
"ora": "3.2.0", | ||
"phantomjs-prebuilt": "2.1.16", | ||
"pixelmatch": "4.0.2", | ||
"pngjs": "3.4.0", | ||
... | ... | @@ -115,8 +107,6 @@ |
"rimraf": "2.6.3", | ||
"sass-lint": "1.12.1", | ||
"sass-loader": "7.1.0", | ||
"semver": "5.7.0", | ||
"simple-git": "^1.112.0", | ||
"sinon": "1.17.6", | ||
"style-loader": "0.23.1", | ||
"systemjs": "0.20.19", | ||
... | ... | @@ -140,9 +130,9 @@ |
}, | ||
"scripts": { | ||
"dev": "webpack --progress --colors --mode development --config scripts/webpack/webpack.dev.js", | ||
"start": "npm run cli -- core:start --watchTheme", | ||
"start:hot": "npm run cli -- core:start --hot --watchTheme", | ||
"start:ignoreTheme": "npm run cli -- core:start --hot", | ||
"start": "grafana-toolkit core:start --watchTheme", | ||
"start:hot": "grafana-toolkit core:start --hot --watchTheme", | ||
"start:ignoreTheme": "grafana-toolkit core:start --hot", | ||
"watch": "yarn start -d watch,start core:start --watchTheme ", | ||
"build": "grunt build", | ||
"test": "grunt test", | ||
... | ... | @@ -153,16 +143,15 @@ |
"api-tests": "jest --notify --watch --config=devenv/e2e-api-tests/jest.js", | ||
"storybook": "cd packages/grafana-ui && yarn storybook", | ||
"storybook:build": "cd packages/grafana-ui && yarn storybook:build", | ||
"themes:generate": "ts-node --project ./scripts/cli/tsconfig.json ./scripts/cli/generateSassVariableFiles.ts", | ||
"prettier:check": "prettier --list-different \"**/*.{ts,tsx,scss}\"", | ||
"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:build": "npm run cli -- gui:build", | ||
"gui:releasePrepare": "npm run cli -- gui:release", | ||
"gui:build": "grafana-toolkit gui:build", | ||
"gui:releasePrepare": "grafana-toolkit gui:release", | ||
"gui:publish": "cd packages/grafana-ui/dist && npm publish --access public", | ||
"gui:release": "npm run cli -- gui:release -p --createVersionCommit", | ||
"precommit": "npm run cli -- precommit" | ||
"gui:release": "grafana-toolkit gui:release -p --createVersionCommit", | ||
"precommit": "grafana-toolkit precommit", | ||
"themes:generate": "ts-node --project ./scripts/cli/tsconfig.json ./scripts/cli/generateSassVariableFiles.ts" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
... | ... |
packages/grafana-toolkit/CHANGELOG.md
0 → 100644
packages/grafana-toolkit/README.md
0 → 100644
packages/grafana-toolkit/package.json
0 → 100644
{ | ||
"name": "@grafana/toolkit", | ||
"version": "6.3.0-alpha.2", | ||
"description": "Grafana Toolkit", | ||
"keywords": [ | ||
"typescript", | ||
"react", | ||
"react-component" | ||
], | ||
"bin": { | ||
"grafana-toolkit": "./bin/grafana-toolkit.js" | ||
}, | ||
"scripts": { | ||
"tslint": "tslint -c tslint.json --project tsconfig.json", | ||
"typecheck": "tsc --noEmit", | ||
"precommit": "npm run tslint & npm run typecheck", | ||
"clean": "rimraf ./dist ./compiled" | ||
}, | ||
"author": "Grafana Labs", | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"@types/execa": "^0.9.0", | ||
"@types/inquirer": "^6.0.3", | ||
"@types/jest": "24.0.13", | ||
"@types/jest-cli": "^23.6.0", | ||
"@types/node": "^12.0.4", | ||
"@types/prettier": "^1.16.4", | ||
"@types/semver": "^6.0.0", | ||
"axios": "0.19.0", | ||
"chalk": "^2.4.2", | ||
"commander": "^2.20.0", | ||
"concurrently": "4.1.0", | ||
"execa": "^1.0.0", | ||
"glob": "^7.1.4", | ||
"inquirer": "^6.3.1", | ||
"jest-cli": "^24.8.0", | ||
"lodash": "4.17.11", | ||
"ora": "^3.4.0", | ||
"prettier": "^1.17.1", | ||
"replace-in-file": "^4.1.0", | ||
"rollup": "^1.14.2", | ||
"rollup-plugin-commonjs": "^10.0.0", | ||
"rollup-plugin-copy-glob": "^0.3.0", | ||
"rollup-plugin-json": "^4.0.0", | ||
"rollup-plugin-node-builtins": "^2.1.2", | ||
"rollup-plugin-node-globals": "^1.4.0", | ||
"rollup-plugin-node-resolve": "^5.1.0", | ||
"rollup-plugin-sourcemaps": "^0.4.2", | ||
"rollup-plugin-terser": "^5.0.0", | ||
"rollup-plugin-typescript2": "^0.21.1", | ||
"rollup-plugin-visualizer": "^1.1.1", | ||
"semver": "^6.1.1", | ||
"simple-git": "^1.112.0", | ||
"ts-node": "^8.2.0", | ||
"tslint": "5.14.0" | ||
}, | ||
"peerDependencies": { | ||
"jest": "24.8.0", | ||
"ts-jest": "24.0.2", | ||
"tslib": "1.10.0", | ||
"typescript": "3.5.1" | ||
}, | ||
"resolutions": { | ||
"@types/lodash": "4.14.119", | ||
"rollup-plugin-typescript2": "0.21.1" | ||
}, | ||
"devDependencies": { | ||
"@types/glob": "^7.1.1", | ||
"rollup-watch": "^4.3.1" | ||
} | ||
} |
File moved
packages/grafana-toolkit/tsconfig.json
0 → 100644
packages/grafana-toolkit/tslint.json
0 → 100644
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment