Skip to content

Commit 2108cfc

Browse files
committed
Merge branch 'develop'
2 parents f5f67a3 + a49d2bb commit 2108cfc

File tree

5 files changed

+227
-168
lines changed

5 files changed

+227
-168
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ module.exports = {
6060
plugins: [
6161
new HtmlWebpackPlugin(),
6262
new HtmlInlineScriptPlugin([
63-
/runtime~.+[.]js/,
64-
/app~.+[.]js/
63+
/runtime~.+[.]js$/,
64+
/app~.+[.]js$/
6565
]),
6666
]
6767
}

docs/publish.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Publish procedure
2+
3+
## Version 1
4+
For publishing v1 of the plugin which supports webpack 4, checkout `v1` branch, and run the following commands:
5+
```bash
6+
# checkout branch
7+
git checkout v1
8+
9+
# pull the latest code
10+
git pull
11+
12+
# make sure dependencies are in correct version
13+
yarn
14+
15+
# bump package version
16+
yarn release
17+
18+
# create build
19+
yarn build
20+
21+
# publish to npm (OTP needed)
22+
npm publish
23+
24+
# push code and trigger github release creation
25+
git push
26+
```
27+
28+
## Version 2
29+
For publishing v2 of the plugin which supports webpack 5, checkout `develop` branch, and run the following commands:
30+
```bash
31+
# checkout branch
32+
git checkout develop
33+
34+
# pull the latest code
35+
git pull
36+
37+
# switch to master branch
38+
git checkout master
39+
40+
# pull the latest code from master
41+
git pull
42+
43+
# merge code from develop branch
44+
git merge --no-ff develop
45+
46+
# make sure dependencies are in correct version
47+
yarn
48+
49+
# bump package version
50+
yarn release
51+
52+
# create build
53+
yarn build
54+
55+
# publish to npm (OTP needed)
56+
npm publish
57+
58+
# push code and trigger github release creation
59+
git push
60+
```

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,13 @@
3838
"@commitlint/config-conventional": "^12.0.0",
3939
"@types/html-webpack-plugin": "^3.2.3",
4040
"@types/jest": "^26.0.20",
41-
"@types/webpack-sources": "^2.1.0",
4241
"@typescript-eslint/eslint-plugin": "^4.0.0",
4342
"@typescript-eslint/parser": "^4.15.2",
4443
"eslint": "^7.4.0",
4544
"eslint-config-airbnb-base": "^14.2.0",
4645
"eslint-plugin-import": "^2.22.0",
4746
"eslint-plugin-jest": "^24.1.5",
48-
"husky": "^5.1.2",
47+
"husky": "^6.0.0",
4948
"install-peers-cli": "^2.2.0",
5049
"jest": "^26.6.3",
5150
"lint-staged": "^10.2.11",

src/HtmlInlineScriptPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class HtmlInlineScriptPlugin implements WebpackPluginInstance {
88
tests: RegExp[];
99

1010
constructor(tests?: RegExp[]) {
11-
this.tests = tests || [/.+[.]js/];
11+
this.tests = tests || [/.+[.]js$/];
1212
}
1313

1414
isFileNeedsToBeInlined(

0 commit comments

Comments
 (0)