Skip to content

Commit

Permalink
feat: add support for webpack5
Browse files Browse the repository at this point in the history
fix: webpack5 support

style: clean

style: package.json

feat: webpack-5 devDependencies update

fix: conflict of nodejs version

fix: eslint

fix: eslint nvm

fix: eslint bug eslint/eslint#13352

feat: package update
  • Loading branch information
mayako21126 committed May 29, 2020
1 parent 2019115 commit b34b2b2
Show file tree
Hide file tree
Showing 23 changed files with 2,972 additions and 585 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ coverage
.current-env
.nyc_output
runtime/*.build.js
.vscode/launch.json
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v7.9.0
v12.0.0
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sudo: false
language: node_js

node_js:
- 8.10.0
- 12.0.0

branches:
except:
Expand All @@ -13,7 +13,8 @@ env:
- ISTANBUL_COVERAGE: yes

script:
- yarn bootstrap --env webpack-4
- nvm install 8.10.0
- sh scripts/build.sh webpack-4
- yarn lint
- yarn test:webpack-2
- yarn test:webpack-3
Expand Down
5 changes: 3 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,17 @@ Please follow these steps to contribute effectively.
```

4. **Setup project** properly:
now u need install nvm

```bash
yarn bootstrap
sh scripts/build.sh
```

It will:
1. Install project dependencies.
2. Install git hooks.
3. Install dependencies for testing in `webpack-1` and `webpack-2` environments.
4. Set `webpack-2` environment as current.
4. Set `webpack-3` environment as current.

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

Expand Down
6 changes: 4 additions & 2 deletions env/webpack-1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
"file-loader": "^0.11.1",
"html-loader": "^0.4.5",
"html-webpack-plugin": "2.28.0",
"webpack": "1"
"webpack": "1",
"eslint": "^3.18.0"
},
"packagesToLink": [
"enhanced-resolve",
"extract-text-webpack-plugin",
"file-loader",
"html-loader",
"html-webpack-plugin",
"webpack"
"webpack",
"eslint"
]
}
Loading

0 comments on commit b34b2b2

Please sign in to comment.