Skip to content

Commit e620de0

Browse files
author
Stanislav Germanovskii
authored
Merge pull request #403 from mayako21126/add-support-webpack5
feat: add support for webpack5
2 parents 2019115 + 00f4fc2 commit e620de0

23 files changed

+2982
-587
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ coverage
2121
.current-env
2222
.nyc_output
2323
runtime/*.build.js
24+
.vscode/launch.json

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v7.9.0
1+
v12.18.1

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ sudo: false
22
language: node_js
33

44
node_js:
5-
- 8.10.0
5+
- 12.18.1
66

77
branches:
88
except:
@@ -13,7 +13,8 @@ env:
1313
- ISTANBUL_COVERAGE: yes
1414

1515
script:
16-
- yarn bootstrap --env webpack-4
16+
- nvm install 8.17.0
17+
- sh scripts/build.sh webpack-4
1718
- yarn lint
1819
- yarn test:webpack-2
1920
- yarn test:webpack-3

CONTRIBUTING.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,17 @@ Please follow these steps to contribute effectively.
5050
```
5151

5252
4. **Setup project** properly:
53+
now u need install nvm
5354

5455
```bash
55-
yarn bootstrap
56+
sh scripts/build.sh
5657
```
5758

5859
It will:
5960
1. Install project dependencies.
6061
2. Install git hooks.
6162
3. Install dependencies for testing in `webpack-1` and `webpack-2` environments.
62-
4. Set `webpack-2` environment as current.
63+
4. Set `webpack-3` environment as current.
6364

6465
Don't use `yarn install` or `npm install`.
6566

env/webpack-1/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@
55
"file-loader": "^0.11.1",
66
"html-loader": "^0.4.5",
77
"html-webpack-plugin": "2.28.0",
8-
"webpack": "1"
8+
"webpack": "1",
9+
"eslint": "^3.18.0"
910
},
1011
"packagesToLink": [
1112
"enhanced-resolve",
1213
"extract-text-webpack-plugin",
1314
"file-loader",
1415
"html-loader",
1516
"html-webpack-plugin",
16-
"webpack"
17+
"webpack",
18+
"eslint"
1719
]
1820
}

0 commit comments

Comments
 (0)