Skip to content

Commit 1135455

Browse files
authored
Merge pull request #1 from Patternslib/webpack5
maint: Upgrade to Webpack 5.
2 parents b924ba0 + dcd3718 commit 1135455

File tree

5 files changed

+48
-75
lines changed

5 files changed

+48
-75
lines changed

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
dist/
21
.DS_Store
3-
node_modules
2+
.env
3+
dist/
4+
node_modules/
45
stamp-yarn
6+
stats.json
7+
yarn-error.log
58
yarn.lock

.release-it.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require("@patternslib/patternslib/.release-it.js");

.release-it.json

Lines changed: 0 additions & 36 deletions
This file was deleted.

Makefile

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
-include .env
2+
export
3+
14
ESLINT ?= npx eslint
25
YARN ?= npx yarn
36

@@ -36,19 +39,25 @@ bundle: stamp-yarn
3639
.PHONY: release-major
3740
release-major: check
3841
npx release-it major --dry-run --ci && \
39-
npx release-it major --ci
42+
npx release-it major --ci && \
43+
npx release-it --github.release --github.update --no-github.draft --no-increment --no-git --no-npm --ci && \
44+
git checkout CHANGES.md
4045

4146

4247
.PHONY: release-minor
4348
release-minor: check
4449
npx release-it minor --dry-run --ci && \
45-
npx release-it minor --ci
50+
npx release-it minor --ci && \
51+
npx release-it --github.release --github.update --no-github.draft --no-increment --no-git --no-npm --ci && \
52+
git checkout CHANGES.md
4653

4754

4855
.PHONY: release-patch
4956
release-patch: check
5057
npx release-it patch --dry-run --ci && \
51-
npx release-it patch --ci
58+
npx release-it patch --ci && \
59+
npx release-it --github.release --github.update --no-github.draft --no-increment --no-git --no-npm --ci && \
60+
git checkout CHANGES.md
5261

5362

5463
.PHONY: serve

package.json

Lines changed: 30 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,54 +5,50 @@
55
"license": "MIT",
66
"main": "./src/code-editor.js",
77
"dependencies": {
8-
"@patternslib/patternslib": "^5.0.0",
8+
"@patternslib/patternslib": "^6.0.1",
99
"codejar": "^3.5.0",
1010
"prismjs": "^1.25.0"
1111
},
1212
"devDependencies": {
13-
"@babel/core": "^7.15.5",
14-
"@babel/eslint-parser": "^7.15.7",
15-
"@babel/plugin-proposal-optional-chaining": "^7.14.5",
16-
"@babel/preset-env": "^7.15.6",
17-
"@commitlint/cli": "^13.1.0",
18-
"@commitlint/config-conventional": "^13.1.0",
13+
"@babel/core": "^7.16.0",
14+
"@babel/eslint-parser": "^7.16.3",
15+
"@babel/plugin-proposal-optional-chaining": "^7.16.0",
16+
"@babel/preset-env": "^7.16.0",
17+
"@commitlint/cli": "^15.0.0",
18+
"@commitlint/config-conventional": "^15.0.0",
1919
"@release-it/conventional-changelog": "^3.3.0",
20-
"@testing-library/jest-dom": "^5.14.1",
21-
"babel-loader": "^8.2.2",
22-
"clean-webpack-plugin": "^3.0.0",
23-
"copy-webpack-plugin": "^6.4.1",
24-
"core-js": "3.18.0",
25-
"css-loader": "^5.2.6",
26-
"duplicate-package-checker-webpack-plugin": "^3.0.0",
27-
"eslint": "^7.32.0",
20+
"@testing-library/jest-dom": "^5.15.0",
21+
"babel-loader": "^8.2.3",
22+
"copy-webpack-plugin": "^10.0.0",
23+
"core-js": "3.19.1",
24+
"css-loader": "^6.5.0",
25+
"eslint": "^8.2.0",
2826
"eslint-config-prettier": "^8.3.0",
29-
"expose-loader": "^1.0.3",
30-
"file-loader": "^6.2.0",
31-
"husky": "^6.0.0",
27+
"expose-loader": "^3.0.0",
28+
"husky": "^7.0.4",
3229
"identity-obj-proxy": "^3.0.0",
33-
"imports-loader": "^1.2.0",
34-
"jest": "^27.2.1",
35-
"jest-watch-typeahead": "^0.6.4",
30+
"imports-loader": "^3.1.0",
31+
"inspectpack": "^4.7.1",
32+
"jest": "^27.3.1",
33+
"jest-watch-typeahead": "^1.0.0",
3634
"prettier": "^2.4.1",
37-
"raw-loader": "^4.0.1",
3835
"regenerator-runtime": "^0.13.9",
39-
"release-it": "^14.11.6",
40-
"sass": "^1.42.1",
41-
"sass-loader": "^10.1.1",
42-
"style-loader": "^2.0.0",
43-
"svg-inline-loader": "^0.8.2",
44-
"terser-webpack-plugin": "^4.2.3",
45-
"webpack": "^4.43.0",
46-
"webpack-bundle-analyzer": "^3.9.0",
47-
"webpack-cli": "^4.8.0",
48-
"webpack-dev-server": "^3.11.2",
36+
"release-it": "^14.11.7",
37+
"sass": "^1.43.4",
38+
"sass-loader": "^12.3.0",
39+
"style-loader": "^3.3.0",
40+
"terser-webpack-plugin": "^5.2.5",
41+
"timezone-mock": "^1.2.2",
42+
"webpack": "^5.64.1",
43+
"webpack-bundle-analyzer": "^4.4.2",
44+
"webpack-cli": "^4.9.1",
45+
"webpack-dev-server": "^4.5.0",
4946
"webpack-modernizr-loader": "^5.0.0",
5047
"whybundled": "^2.0.0",
51-
"yarn": "^1.22.11"
48+
"yarn": "^1.22.17"
5249
},
5350
"scripts": {
5451
"start": "NODE_ENV=development webpack serve --config webpack.config.js",
55-
"watch": "NODE_ENV=development webpack --config webpack.config.js --watch",
5652
"build": "NODE_ENV=production webpack --config webpack.config.js",
5753
"build:stats": "NODE_ENV=production webpack --config webpack.config.js --json > stats.json",
5854
"test": "jest"

0 commit comments

Comments
 (0)