From 6aa90f11ce29bf4a5d07b352577abdf67ecf02c7 Mon Sep 17 00:00:00 2001 From: David Recuenco Date: Mon, 1 Feb 2021 14:20:26 +0100 Subject: [PATCH] UPGRADE dependencies --- CHANGELOG.md | 12 +++++++++++ .../javascript-babel-browser/package.json | 2 +- examples/javascript-vuejs/package.json | 2 +- examples/typescript-browser/package.json | 2 +- package-lock.json | 2 +- package.json | 2 +- packages/webpack-babel/CHANGELOG.md | 5 +++++ packages/webpack-babel/package.json | 8 +++---- packages/webpack-files/CHANGELOG.md | 10 +++++++++ packages/webpack-files/package.json | 20 +++++++++--------- packages/webpack-less/CHANGELOG.md | 12 +++++++++++ packages/webpack-less/package.json | 21 ++++++++++--------- packages/webpack-sass/CHANGELOG.md | 12 +++++++++++ packages/webpack-sass/package.json | 21 ++++++++++--------- packages/webpack-typescript/CHANGELOG.md | 5 +++++ packages/webpack-typescript/package.json | 8 +++---- packages/webpack-vue/CHANGELOG.md | 6 ++++++ packages/webpack-vue/package.json | 14 ++++++------- packages/webpack/CHANGELOG.md | 6 ++++++ packages/webpack/README.md | 2 +- packages/webpack/package.json | 14 ++++++------- scripts/reinstall-examples.js | 13 ++++++++++-- 22 files changed, 139 insertions(+), 60 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4623d2a..656b5e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +## 1.0.8 + +- Updated packages: + - `webpack` + - `webpack-babel` + - `webpack-files` + - `webpack-less` + - `webpack-sass` + - `webpack-typescript` + - `webpack-vue` +- Fixed issues with spawn npm install on node 14. + ## 1.0.7 - Added `.npmrc.nexus`, `Dockerfile`, `nexus.yml` and `docker-compose.yml` for quick nexus setup. diff --git a/examples/javascript-babel-browser/package.json b/examples/javascript-babel-browser/package.json index 270ba7b..112cf52 100644 --- a/examples/javascript-babel-browser/package.json +++ b/examples/javascript-babel-browser/package.json @@ -3,7 +3,7 @@ "private": true, "scripts": { "build": "webpack", - "dev": "webpack-dev-server --open --hot", + "dev": "webpack serve --open --hot", "test": "jest --config jest.config.js", "clean": "rimraf dist && rimraf test/results", "all": "npm run clean && npm run build && npm run test" diff --git a/examples/javascript-vuejs/package.json b/examples/javascript-vuejs/package.json index b916d65..64a86a5 100644 --- a/examples/javascript-vuejs/package.json +++ b/examples/javascript-vuejs/package.json @@ -3,7 +3,7 @@ "private": true, "scripts": { "build": "webpack", - "dev": "webpack-dev-server --open --hot", + "dev": "webpack serve --open --hot", "lint": "eslint --ext .js,.vue src", "clean": "rimraf dist", "all": "npm run clean && npm run build && npm run lint" diff --git a/examples/typescript-browser/package.json b/examples/typescript-browser/package.json index 56833ba..6c860ff 100644 --- a/examples/typescript-browser/package.json +++ b/examples/typescript-browser/package.json @@ -3,7 +3,7 @@ "private": true, "scripts": { "build": "webpack", - "dev": "webpack-dev-server --open --hot", + "dev": "webpack serve --open --hot", "test": "jest --config jest.config.js", "lint": "eslint --ext .ts src/", "doc": "typedoc --out docs --readme none src/index.ts", diff --git a/package-lock.json b/package-lock.json index 63a12b8..d485027 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "js-build-tools", - "version": "1.0.7", + "version": "1.0.8", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 96aeb22..b28529d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "js-build-tools", - "version": "1.0.7", + "version": "1.0.8", "description": "adidas configurations for JavaScript tooling", "license": "MIT", "contributors": [ diff --git a/packages/webpack-babel/CHANGELOG.md b/packages/webpack-babel/CHANGELOG.md index 7dce1f1..ce0176b 100644 --- a/packages/webpack-babel/CHANGELOG.md +++ b/packages/webpack-babel/CHANGELOG.md @@ -1,3 +1,8 @@ +# 1.1.0 + +- Updated babel-loader to v8.2. +- Updated engines to node >= 12 and npm >= 6. + # 1.0.1 - Initial version: `build-tools-webpack-babel`. diff --git a/packages/webpack-babel/package.json b/packages/webpack-babel/package.json index 107fbe2..b9e6850 100644 --- a/packages/webpack-babel/package.json +++ b/packages/webpack-babel/package.json @@ -1,6 +1,6 @@ { "name": "build-tools-webpack-babel", - "version": "1.0.1", + "version": "1.1.0", "description": "Configurations to use babel with webpack", "main": "./index.js", "license": "MIT", @@ -13,10 +13,10 @@ "url": "https://github.com/adidas/js-build-tools.git" }, "engines": { - "node": ">= 8", - "npm": ">= 5" + "node": ">= 12", + "npm": ">= 6" }, "dependencies": { - "babel-loader": "~8.0.4" + "babel-loader": "~8.2" } } diff --git a/packages/webpack-files/CHANGELOG.md b/packages/webpack-files/CHANGELOG.md index 37c3b4a..c592020 100644 --- a/packages/webpack-files/CHANGELOG.md +++ b/packages/webpack-files/CHANGELOG.md @@ -1,3 +1,13 @@ +# 1.3.0 + +- Updated copy-webpack-plugin to v7.0. +- Updated file-loader to v6.2. +- Updated url-loader to v4.1. +- Updated html-loader to v1.3. +- Updated html-webpack-plugin to v4.5. +- Updated json-loader and yaml-loader semver to match newer patches. +- Updated engines to node >= 12 and npm >= 6. + # 1.2.0 - Added JSON and YAML loaders. diff --git a/packages/webpack-files/package.json b/packages/webpack-files/package.json index 6a09285..205f63f 100644 --- a/packages/webpack-files/package.json +++ b/packages/webpack-files/package.json @@ -1,6 +1,6 @@ { "name": "build-tools-webpack-files", - "version": "1.2.0", + "version": "1.3.0", "description": "Configurations to use webpack with static assets", "main": "./index.js", "license": "MIT", @@ -13,16 +13,16 @@ "url": "https://github.com/adidas/js-build-tools.git" }, "engines": { - "node": ">= 8", - "npm": ">= 5" + "node": ">= 12", + "npm": ">= 6" }, "dependencies": { - "copy-webpack-plugin": "~5.0.2", - "file-loader": "~3.0.1", - "html-loader": "~0.5.5", - "html-webpack-plugin": "~3.2.0", - "json-loader": "~0.5.7", - "url-loader": "~1.1.2", - "yaml-loader": "~0.6.0" + "copy-webpack-plugin": "~7.0", + "file-loader": "~6.2", + "html-loader": "~1.3", + "html-webpack-plugin": "~4.5", + "json-loader": "~0.5", + "url-loader": "~4.1", + "yaml-loader": "~0.6" } } diff --git a/packages/webpack-less/CHANGELOG.md b/packages/webpack-less/CHANGELOG.md index f5a19e1..29e3eb2 100644 --- a/packages/webpack-less/CHANGELOG.md +++ b/packages/webpack-less/CHANGELOG.md @@ -1,3 +1,15 @@ +# 1.3.0 + +- Added postcss v8.2. +- Updated autoprefixer to v10.2. +- Updated css-loader to v5.0. +- Updated less to v4.1. +- Updated less-loader to v7.3. +- Updated postcss-loader to v4.2. +- Updated style-loader to v2.0. +- Updated mini-css-extract-plugin semver to match newer patches. +- Updated engines to node >= 12 and npm >= 6. + # 1.2.0 - Added `postcss-loader`. diff --git a/packages/webpack-less/package.json b/packages/webpack-less/package.json index 4bef172..c497e3a 100644 --- a/packages/webpack-less/package.json +++ b/packages/webpack-less/package.json @@ -1,6 +1,6 @@ { "name": "build-tools-webpack-less", - "version": "1.2.0", + "version": "1.3.0", "description": "Configurations to use webpack with less", "main": "./index.js", "license": "MIT", @@ -13,16 +13,17 @@ "url": "https://github.com/adidas/js-build-tools.git" }, "engines": { - "node": ">= 8", - "npm": ">= 5" + "node": ">= 12", + "npm": ">= 6" }, "dependencies": { - "autoprefixer": "~9.8.6", - "css-loader": "~2.1.1", - "less": "~3.12.2", - "less-loader": "~7.0.2", - "mini-css-extract-plugin": "~1.3.0", - "postcss-loader": "~3.0.0", - "style-loader": "~1.2.1" + "autoprefixer": "~10.2", + "css-loader": "~5.0", + "less": "~4.1", + "less-loader": "~7.3", + "mini-css-extract-plugin": "~1.3", + "postcss": "~8.2", + "postcss-loader": "~4.2", + "style-loader": "~2.0" } } diff --git a/packages/webpack-sass/CHANGELOG.md b/packages/webpack-sass/CHANGELOG.md index 27844ff..008045a 100644 --- a/packages/webpack-sass/CHANGELOG.md +++ b/packages/webpack-sass/CHANGELOG.md @@ -1,3 +1,15 @@ +# 1.3.0 + +- Added postcss v8.2. +- Replaced node-sass by sass@1.32. +- Updated autoprefixer to v10.2. +- Updated css-loader to v5.0. +- Updated postcss-loader to v4.2. +- Updated sass-loader to v10.1. +- Updated style-loader to v2.0. +- Updated mini-css-extract-plugin semver to match newer patches. +- Updated engines to node >= 12 and npm >= 6. + # 1.2.0 - Added `postcss-loader`. diff --git a/packages/webpack-sass/package.json b/packages/webpack-sass/package.json index fad9e06..960dced 100644 --- a/packages/webpack-sass/package.json +++ b/packages/webpack-sass/package.json @@ -1,6 +1,6 @@ { "name": "build-tools-webpack-sass", - "version": "1.2.0", + "version": "1.3.0", "description": "Configurations to use webpack with sass", "main": "./index.js", "license": "MIT", @@ -13,16 +13,17 @@ "url": "https://github.com/adidas/js-build-tools.git" }, "engines": { - "node": ">= 8", - "npm": ">= 5" + "node": ">= 12", + "npm": ">= 6" }, "dependencies": { - "autoprefixer": "~9.8.6", - "css-loader": "~2.1.1", - "mini-css-extract-plugin": "~1.3.0", - "node-sass": "~4.14.1", - "postcss-loader": "~3.0.0", - "sass-loader": "~9.0.3", - "style-loader": "~1.2.1" + "autoprefixer": "~10.2", + "css-loader": "~5.0", + "mini-css-extract-plugin": "~1.3", + "postcss": "~8.2", + "postcss-loader": "~4.2", + "sass": "~1.32", + "sass-loader": "~10.1", + "style-loader": "~2.0" } } diff --git a/packages/webpack-typescript/CHANGELOG.md b/packages/webpack-typescript/CHANGELOG.md index 0e61daa..f6cefd6 100644 --- a/packages/webpack-typescript/CHANGELOG.md +++ b/packages/webpack-typescript/CHANGELOG.md @@ -1,3 +1,8 @@ +# 1.4.0 + +- Updated ts-loader to v8.0. +- Updated engines to node >= 12 and npm >= 6. + # 1.3.0 - Updated ts-loader to v7. diff --git a/packages/webpack-typescript/package.json b/packages/webpack-typescript/package.json index 7a996c9..09b8ebe 100644 --- a/packages/webpack-typescript/package.json +++ b/packages/webpack-typescript/package.json @@ -1,6 +1,6 @@ { "name": "build-tools-webpack-typescript", - "version": "1.3.0", + "version": "1.4.0", "description": "Configurations to use webpack with typescript", "main": "./index.js", "license": "MIT", @@ -13,10 +13,10 @@ "url": "https://github.com/adidas/js-build-tools.git" }, "engines": { - "node": ">= 8", - "npm": ">= 5" + "node": ">= 12", + "npm": ">= 6" }, "dependencies": { - "ts-loader": "~7.0.5" + "ts-loader": "~8.0" } } diff --git a/packages/webpack-vue/CHANGELOG.md b/packages/webpack-vue/CHANGELOG.md index 514575f..161db9d 100644 --- a/packages/webpack-vue/CHANGELOG.md +++ b/packages/webpack-vue/CHANGELOG.md @@ -1,3 +1,9 @@ +# 1.2.0 + +- Updated vue-loader to v15.9. +- Updated vue, vue-style-loader and vue-template-compiler semver to match newer patches. +- Updated engines to node >= 12 and npm >= 6. + # 1.1.0 - Added plugin entry with VueLoaderPlugin instance. diff --git a/packages/webpack-vue/package.json b/packages/webpack-vue/package.json index 54dde18..e20949d 100644 --- a/packages/webpack-vue/package.json +++ b/packages/webpack-vue/package.json @@ -1,6 +1,6 @@ { "name": "build-tools-webpack-vue", - "version": "1.1.0", + "version": "1.2.0", "description": "Configurations to use webpack with Vue", "main": "./index.js", "license": "MIT", @@ -13,15 +13,15 @@ "url": "https://github.com/adidas/js-build-tools.git" }, "engines": { - "node": ">= 8", - "npm": ">= 5" + "node": ">= 12", + "npm": ">= 6" }, "peerDependencies": { - "vue": "~2.6.10" + "vue": "~2.6" }, "dependencies": { - "vue-loader": "~15.7.0", - "vue-style-loader": "~4.1.2", - "vue-template-compiler": "~2.6.10" + "vue-loader": "~15.9", + "vue-style-loader": "~4.1", + "vue-template-compiler": "~2.6" } } diff --git a/packages/webpack/CHANGELOG.md b/packages/webpack/CHANGELOG.md index 0550aa8..2ec2559 100644 --- a/packages/webpack/CHANGELOG.md +++ b/packages/webpack/CHANGELOG.md @@ -1,3 +1,9 @@ +# 1.3.0 + +- Updated webpack to v5 and webpack-cli to v4. +- Updated glob and webpack-dev-server semver to match newer patches. **Note**: `webpack-dev-server` is now used through webpack-cli as `webpack serve`. +- Updated engines to node >= 12 and npm >= 6. + # 1.2.0 - Updated webpack to v4.44 and webpack-cli and webpack-dev-server diff --git a/packages/webpack/README.md b/packages/webpack/README.md index 7b7ab27..4b2a405 100644 --- a/packages/webpack/README.md +++ b/packages/webpack/README.md @@ -41,7 +41,7 @@ In order to toggle this configuration, `NODE_ENV` must be set to `production`. Aside from common configurations, `webpack-dev-server` is available, you can run it as you would normally do, e.g: ``` -npx webpack-dev-server --open --hot +npx webpack serve --open --hot ``` ### banner diff --git a/packages/webpack/package.json b/packages/webpack/package.json index 466ae69..8400e56 100644 --- a/packages/webpack/package.json +++ b/packages/webpack/package.json @@ -1,6 +1,6 @@ { "name": "build-tools-webpack", - "version": "1.2.0", + "version": "1.3.0", "description": "Configurations to use webpack", "main": "./index.js", "license": "MIT", @@ -13,13 +13,13 @@ "url": "https://github.com/adidas/js-build-tools.git" }, "engines": { - "node": ">= 8", - "npm": ">= 5" + "node": ">= 12", + "npm": ">= 6" }, "dependencies": { - "glob": "~7.1.2", - "webpack": "~4.44.2", - "webpack-cli": "~3.3.12", - "webpack-dev-server": "~3.11.0" + "glob": "~7.1", + "webpack": "~5.18", + "webpack-cli": "~4.4", + "webpack-dev-server": "~3.11" } } diff --git a/scripts/reinstall-examples.js b/scripts/reinstall-examples.js index 968dbdc..2f574fa 100644 --- a/scripts/reinstall-examples.js +++ b/scripts/reinstall-examples.js @@ -21,9 +21,18 @@ examplesSuite.forEach((dir) => { process.stdout.write(`Reinstalling ${ bold(blue(dir)) }... `); - copyFileSync(join(rootDir, '.npmrc.nexus'), join(exampleDir, '.npmrc'), options); + copyFileSync(join(rootDir, '.npmrc.nexus'), join(exampleDir, '.npmrc')); const { status: rmStatus } = spawnSync('rm', [ '-rf', 'node_modules', 'package-lock.json' ], options); - const { status: installStatus } = spawnSync('npm', [ 'install', '--no-package-lock' ], options); + const { status: installStatus } = spawnSync( + 'npm', + [ 'install', '--no-package-lock' ], + { + ...options, + env: { + PATH: process.env.PATH + } + } + ); process.stdout.write(bold(rmStatus || installStatus ? red('nok') : green('ok'))); nl();