Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

UPGRADE dependencies #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion examples/javascript-babel-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/javascript-vuejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
5 changes: 5 additions & 0 deletions packages/webpack-babel/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`.
8 changes: 4 additions & 4 deletions packages/webpack-babel/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
}
}
10 changes: 10 additions & 0 deletions packages/webpack-files/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
20 changes: 10 additions & 10 deletions packages/webpack-files/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
}
}
12 changes: 12 additions & 0 deletions packages/webpack-less/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
21 changes: 11 additions & 10 deletions packages/webpack-less/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
}
}
12 changes: 12 additions & 0 deletions packages/webpack-sass/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# 1.3.0

- Added postcss v8.2.
- Replaced node-sass by [email protected].
- 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`.
Expand Down
21 changes: 11 additions & 10 deletions packages/webpack-sass/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
}
}
5 changes: 5 additions & 0 deletions packages/webpack-typescript/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
8 changes: 4 additions & 4 deletions packages/webpack-typescript/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
}
}
6 changes: 6 additions & 0 deletions packages/webpack-vue/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
14 changes: 7 additions & 7 deletions packages/webpack-vue/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
}
}
6 changes: 6 additions & 0 deletions packages/webpack/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions packages/webpack/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
}
}
13 changes: 11 additions & 2 deletions scripts/reinstall-examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down