]> source.dussan.org Git - sonarqube.git/commitdiff
Update webpack dependencies
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Fri, 22 Mar 2019 10:05:08 +0000 (11:05 +0100)
committersonartech <sonartech@sonarsource.com>
Fri, 29 Mar 2019 08:44:59 +0000 (09:44 +0100)
build.gradle
server/sonar-vsts/babel.config.js
server/sonar-vsts/config/polyfills.js
server/sonar-vsts/config/webpack.config.js
server/sonar-vsts/package.json
server/sonar-web/babel.config.js
server/sonar-web/babel.config.legacy.js
server/sonar-web/config/polyfills.js
server/sonar-web/config/webpack.config.js
server/sonar-web/package.json

index 4be44556c85542f415b93f69c6fd272913809ae2..69b9146dafa7f7b201b5b9287f05ea1524b6054a 100644 (file)
@@ -317,8 +317,8 @@ subprojects {
     apply plugin: 'com.moowork.node'
 
     node {
-      version = '8.11.4'
-      yarnVersion = '1.9.4'
+      version = '10.15.3'
+      yarnVersion = '1.15.2'
       download = true
     }
   }
index ec306c89e37675077cb3a2ea52e33973dfc16610..61b0735df042e1bd130157b9e4dccec2df85facd 100644 (file)
@@ -16,6 +16,7 @@ module.exports = {
             'IE 11'
           ]
         },
+        corejs: 3,
         useBuiltIns: 'entry'
       }
     ],
index 7934db84cb8552816a9e7ae2579a00b9984f6a65..aeb84b8e3e21b4af3840ca880bfe20380a1d20fd 100644 (file)
@@ -17,5 +17,6 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import '@babel/polyfill';
+import 'core-js/stable';
+import 'regenerator-runtime/runtime';
 import 'whatwg-fetch';
index 830b1182ed8a8eec8a27c481140a13b8d5f500bc..3956fabd8b2e5574de4b4c7caa721214165b2093 100644 (file)
@@ -69,8 +69,7 @@ module.exports = ({ production = true }) => ({
     ].filter(Boolean)
   },
   plugins: [
-    // `allowExternal: true` to remove files outside of the current dir
-    production && new CleanWebpackPlugin([paths.appBuild], { allowExternal: true, verbose: false }),
+    production && new CleanWebpackPlugin(),
 
     production &&
       new CopyWebpackPlugin([
index 5543c1461798a8207cdd8860a5590192e90a35ad..cd3f7b93433baf9b3262a1c1f68dce584d61601d 100644 (file)
@@ -6,40 +6,41 @@
   "license": "LGPL-3.0",
   "private": true,
   "dependencies": {
-    "@babel/polyfill": "7.0.0",
     "classnames": "2.2.6",
+    "core-js": "3.0.0",
     "lodash": "4.17.11",
     "react": "16.8.5",
     "react-dom": "16.8.5",
-    "whatwg-fetch": "2.0.3"
+    "regenerator-runtime": "0.13.2",
+    "whatwg-fetch": "2.0.4"
   },
   "devDependencies": {
-    "@babel/core": "7.1.2",
-    "@babel/plugin-proposal-class-properties": "7.1.0",
-    "@babel/plugin-proposal-object-rest-spread": "7.0.0",
-    "@babel/plugin-syntax-dynamic-import": "7.0.0",
-    "@babel/plugin-transform-react-constant-elements": "7.0.0",
-    "@babel/plugin-transform-react-jsx-self": "7.0.0",
-    "@babel/plugin-transform-react-jsx-source": "7.0.0",
-    "@babel/preset-env": "7.1.0",
+    "@babel/core": "7.4.0",
+    "@babel/plugin-proposal-class-properties": "7.4.0",
+    "@babel/plugin-proposal-object-rest-spread": "7.4.0",
+    "@babel/plugin-syntax-dynamic-import": "7.2.0",
+    "@babel/plugin-transform-react-constant-elements": "7.2.0",
+    "@babel/plugin-transform-react-jsx-self": "7.2.0",
+    "@babel/plugin-transform-react-jsx-source": "7.2.0",
+    "@babel/preset-env": "7.4.2",
     "@babel/preset-react": "7.0.0",
     "@types/classnames": "2.2.6",
     "@types/enzyme": "3.9.1",
     "@types/jest": "24.0.11",
-    "@types/lodash": "4.14.117",
+    "@types/lodash": "4.14.123",
     "@types/react": "16.8.8",
     "@types/react-dom": "16.8.3",
     "@typescript-eslint/parser": "1.5.0",
-    "autoprefixer": "9.3.1",
+    "autoprefixer": "9.5.0",
     "babel-core": "7.0.0-bridge.0",
     "babel-jest": "24.5.0",
-    "babel-loader": "8.0.4",
+    "babel-loader": "8.0.5",
     "babel-plugin-dynamic-import-node": "2.2.0",
     "babel-plugin-lodash": "3.3.4",
     "chalk": "2.4.1",
-    "clean-webpack-plugin": "0.1.19",
-    "copy-webpack-plugin": "4.5.4",
-    "css-loader": "1.0.0",
+    "clean-webpack-plugin": "2.0.1",
+    "copy-webpack-plugin": "5.0.1",
+    "css-loader": "1.0.1",
     "enzyme": "3.9.0",
     "enzyme-adapter-react-16": "1.10.0",
     "enzyme-to-json": "3.3.5",
@@ -53,8 +54,8 @@
     "eslint-plugin-sonarjs": "0.3.0",
     "html-webpack-plugin": "3.2.0",
     "jest": "24.5.0",
-    "postcss-calc": "7.0.0",
-    "postcss-custom-properties": "8.0.8",
+    "postcss-calc": "7.0.1",
+    "postcss-custom-properties": "8.0.9",
     "postcss-loader": "3.0.0",
     "prettier": "1.14.3",
     "react-dev-utils": "5.0.0",
@@ -64,9 +65,9 @@
     "ts-jest": "24.0.0",
     "ts-loader": "5.3.3",
     "typescript": "3.3.3333",
-    "webpack": "4.22.0",
-    "webpack-bundle-analyzer": "3.0.3",
-    "webpack-dev-server": "3.1.10"
+    "webpack": "4.29.6",
+    "webpack-bundle-analyzer": "3.1.0",
+    "webpack-dev-server": "3.2.1"
   },
   "scripts": {
     "start": "node scripts/start.js",
@@ -81,7 +82,7 @@
     "validate-ci": "yarn lint-report && yarn ts-check && yarn format-check && yarn test --coverage"
   },
   "engines": {
-    "node": ">=6"
+    "node": ">=8"
   },
   "browserslist": [
     "last 3 Chrome versions",
index 3359ae2714bbacc38b94e382348081ffa9690d7f..2f732dd1ee9775fced0665849f556134b81901ec 100644 (file)
@@ -12,6 +12,7 @@ module.exports = {
             'last 2 Edge versions'
           ]
         },
+        corejs: 3,
         useBuiltIns: 'entry'
       }
     ],
index 2c525fffc4bbfa4cc0ddfee5ecf4625726134f11..9f2c94870fb6d5c2fff5e7e4168459c0c1774ba7 100644 (file)
@@ -13,6 +13,7 @@ module.exports = {
             'IE 11'
           ]
         },
+        corejs: 3,
         useBuiltIns: 'entry'
       }
     ],
index 7934db84cb8552816a9e7ae2579a00b9984f6a65..aeb84b8e3e21b4af3840ca880bfe20380a1d20fd 100644 (file)
@@ -17,5 +17,6 @@
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
-import '@babel/polyfill';
+import 'core-js/stable';
+import 'regenerator-runtime/runtime';
 import 'whatwg-fetch';
index ebd2bffa49af40bef8131d1e892313ba3d513abd..97aa7dc4eefd8c5e945cf30bf62ec8241048c9be 100644 (file)
@@ -153,9 +153,7 @@ module.exports = ({ production = true }) => {
         ]
       },
       plugins: [
-        // `allowExternal: true` to remove files outside of the current dir
-        production &&
-          new CleanWebpackPlugin([paths.appBuild], { allowExternal: true, verbose: false }),
+        production && new CleanWebpackPlugin(),
 
         production &&
           new CopyWebpackPlugin([
index b9245fe732e32977662549fb5cea31581ddbfcf4..62aa05a782497df5b7a38a1f42fdf49ec5120c5b 100644 (file)
@@ -5,9 +5,9 @@
   "repository": "SonarSource/sonarqube",
   "license": "LGPL-3.0",
   "dependencies": {
-    "@babel/polyfill": "7.0.0",
     "classnames": "2.2.6",
     "clipboard": "2.0.1",
+    "core-js": "3.0.0",
     "create-react-class": "15.6.3",
     "d3-array": "1.2.4",
     "d3-hierarchy": "1.1.8",
@@ -40,6 +40,7 @@
     "redux": "4.0.1",
     "redux-logger": "3.0.6",
     "redux-thunk": "2.3.0",
+    "regenerator-runtime": "0.13.2",
     "remark-custom-blocks": "2.3.0",
     "remark-slug": "5.1.0",
     "remark-toc": "5.0.0",
     "whatwg-fetch": "2.0.4"
   },
   "devDependencies": {
-    "@babel/core": "7.1.2",
-    "@babel/plugin-proposal-class-properties": "7.1.0",
-    "@babel/plugin-proposal-object-rest-spread": "7.0.0",
-    "@babel/plugin-syntax-dynamic-import": "7.0.0",
-    "@babel/plugin-transform-react-constant-elements": "7.0.0",
-    "@babel/plugin-transform-react-jsx-self": "7.0.0",
-    "@babel/plugin-transform-react-jsx-source": "7.0.0",
-    "@babel/preset-env": "7.1.0",
+    "@babel/core": "7.4.0",
+    "@babel/plugin-proposal-class-properties": "7.4.0",
+    "@babel/plugin-proposal-object-rest-spread": "7.4.0",
+    "@babel/plugin-syntax-dynamic-import": "7.2.0",
+    "@babel/plugin-transform-react-constant-elements": "7.2.0",
+    "@babel/plugin-transform-react-jsx-self": "7.2.0",
+    "@babel/plugin-transform-react-jsx-source": "7.2.0",
+    "@babel/preset-env": "7.4.2",
     "@babel/preset-react": "7.0.0",
     "@types/classnames": "2.2.6",
     "@types/clipboard": "2.0.1",
@@ -68,7 +69,7 @@
     "@types/enzyme": "3.9.1",
     "@types/jest": "24.0.11",
     "@types/keymaster": "1.6.28",
-    "@types/lodash": "4.14.117",
+    "@types/lodash": "4.14.123",
     "@types/prop-types": "15.7.0",
     "@types/react": "16.8.8",
     "@types/react-dom": "16.8.3",
     "@types/react-virtualized": "9.21.0",
     "@types/valid-url": "1.0.2",
     "@typescript-eslint/parser": "1.5.0",
-    "autoprefixer": "9.3.1",
+    "autoprefixer": "9.5.0",
     "babel-core": "7.0.0-bridge.0",
     "babel-jest": "24.5.0",
-    "babel-loader": "8.0.4",
+    "babel-loader": "8.0.5",
     "babel-plugin-dynamic-import-node": "2.2.0",
     "babel-plugin-lodash": "3.3.4",
     "chalk": "2.4.1",
-    "clean-webpack-plugin": "0.1.19",
-    "copy-webpack-plugin": "4.5.4",
-    "css-loader": "1.0.0",
+    "clean-webpack-plugin": "2.0.1",
+    "copy-webpack-plugin": "5.0.1",
+    "css-loader": "1.0.1",
     "enzyme": "3.9.0",
     "enzyme-adapter-react-16": "1.10.0",
     "enzyme-to-json": "3.3.5",
     "jest": "24.5.0",
     "lint-staged": "7.3.0",
     "lodash-webpack-plugin": "0.11.5",
-    "mini-css-extract-plugin": "0.4.4",
-    "postcss-calc": "7.0.0",
-    "postcss-custom-properties": "8.0.8",
+    "mini-css-extract-plugin": "0.5.0",
+    "postcss-calc": "7.0.1",
+    "postcss-custom-properties": "8.0.9",
     "postcss-loader": "3.0.0",
     "prettier": "1.14.3",
-    "raw-loader": "0.5.1",
+    "raw-loader": "2.0.0",
     "react-dev-utils": "5.0.1",
     "react-error-overlay": "1.0.7",
     "react-test-renderer": "16.8.5",
     "ts-jest": "24.0.0",
     "ts-loader": "5.3.3",
     "typescript": "3.3.3333",
-    "webpack": "4.27.1",
-    "webpack-bundle-analyzer": "3.0.3",
-    "webpack-dev-server": "3.1.10"
+    "webpack": "4.29.6",
+    "webpack-bundle-analyzer": "3.1.0",
+    "webpack-dev-server": "3.2.1"
   },
   "scripts": {
     "start": "node scripts/start.js",
     "precommit": "yarn ts-check && lint-staged"
   },
   "engines": {
-    "node": ">=6"
+    "node": ">=8"
   },
   "browserslist": [
     "last 3 Chrome versions",