Build: Enable persistent cache for faster Webpack builds (#41430)

* build(webpack): enable caching for development and production builds

* build(webpack): introduce unminified production build script

* build(typescript): introduce incremental flag to cache typechecking

* chore(git): ignore typescript cache file

* chore(webpack): bump dependencies to latest
This commit is contained in:
Jack Westbrook
2021-11-11 14:32:34 +01:00
committed by GitHub
parent 5cc9ff8b28
commit 5fad5511e9
6 changed files with 302 additions and 175 deletions
+17 -16
View File
@@ -8,6 +8,7 @@
"scripts": {
"api-tests": "jest --notify --watch --config=devenv/e2e-api-tests/jest.js",
"build": "webpack --config scripts/webpack/webpack.prod.js",
"build:nominify": "webpack --config scripts/webpack/webpack.prod.js --env noMinify=1",
"dev": "webpack --progress --color --config scripts/webpack/webpack.dev.js",
"e2e": "./e2e/start-and-run-suite",
"e2e:debug": "./e2e/start-and-run-suite debug",
@@ -81,7 +82,7 @@
"@grafana/tsconfig": "^1.0.0-rc1",
"@kusto/monaco-kusto": "4.0.6",
"@microsoft/api-extractor": "7.18.16",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.0-rc.6",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.1",
"@rtsao/plugin-proposal-class-properties": "7.0.1-patch.1",
"@swc/core": "1.2.103",
"@swc/helpers": "0.2.13",
@@ -150,8 +151,8 @@
"babel-loader": "8.2.2",
"babel-plugin-angularjs-annotate": "0.10.0",
"copy-webpack-plugin": "9.0.1",
"css-loader": "6.4.0",
"css-minimizer-webpack-plugin": "^3.1.1",
"css-loader": "6.5.1",
"css-minimizer-webpack-plugin": "^3.1.3",
"cypress": "8.4.1",
"enzyme": "3.11.0",
"enzyme-to-json": "3.4.4",
@@ -166,9 +167,9 @@
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-react": "7.22.0",
"eslint-plugin-react-hooks": "4.2.0",
"eslint-webpack-plugin": "3.0.1",
"eslint-webpack-plugin": "3.1.0",
"expect.js": "0.3.1",
"expose-loader": "3.0.0",
"expose-loader": "3.1.0",
"file-loader": "6.2.0",
"fork-ts-checker-webpack-plugin": "6.4.0",
"fs-extra": "10.0.0",
@@ -176,7 +177,7 @@
"glob": "7.1.6",
"html-loader": "3.0.1",
"html-webpack-harddisk-plugin": "2.0.0",
"html-webpack-plugin": "5.3.2",
"html-webpack-plugin": "5.5.0",
"http-server": "14.0.0",
"husky": "^7.0.0",
"iconscout-unicons-tarball": "https://github.com/grafana/icons/tarball/63056cd833ba7ee4e94904492b3a8c0cabc38d28",
@@ -187,13 +188,13 @@
"jest-matcher-utils": "26.0.0",
"lerna": "^4.0.0",
"lint-staged": "11.2.6",
"mini-css-extract-plugin": "2.4.2",
"mini-css-extract-plugin": "2.4.4",
"module-alias": "2.2.2",
"mutationobserver-shim": "0.3.3",
"ngtemplate-loader": "2.1.0",
"nodemon": "2.0.2",
"postcss": "8.3.6",
"postcss-loader": "6.1.1",
"postcss-loader": "6.2.0",
"postcss-reporter": "7.0.2",
"prettier": "2.2.1",
"raw-loader": "4.0.2",
@@ -205,25 +206,25 @@
"rimraf": "3.0.1",
"rxjs-spy": "8.0.0",
"sass": "1.32.13",
"sass-loader": "12.1.0",
"sass-loader": "12.3.0",
"sinon": "8.1.1",
"style-loader": "3.3.0",
"style-loader": "3.3.1",
"stylelint": "13.13.1",
"stylelint-config-prettier": "9.0.3",
"stylelint-config-sass-guidelines": "8.0.0",
"terser-webpack-plugin": "5.2.4",
"terser-webpack-plugin": "5.2.5",
"testing-library-selector": "^0.1.3",
"ts-jest": "26.4.4",
"ts-loader": "8.3.0",
"ts-loader": "9.2.6",
"ts-node": "10.4.0",
"tslib": "2.3.1",
"typescript": "4.4.3",
"wait-on": "6.0.0",
"webpack": "5.58.1",
"webpack-bundle-analyzer": "4.4.2",
"webpack": "5.63.0",
"webpack-bundle-analyzer": "4.5.0",
"webpack-cleanup-plugin": "0.5.1",
"webpack-cli": "4.9.0",
"webpack-dev-server": "4.3.1",
"webpack-cli": "4.9.1",
"webpack-dev-server": "4.4.0",
"webpack-merge": "5.8.0"
},
"dependencies": {