This repository has been archived by the owner on May 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Apply webpack-defaults (#542)
- refactor: Migrate extracted module to lib - refactor: Migrate order undefined to lib - refactor: Extract etwp helper functions - refactor: Extract compilation to stand alone class - refactor: Proxy plugin module from cjs.js - refactor: Modernize loader syntax - Convert to ES6+ Class - Convert to ES6+ default export - Convert to const / let - Uses import syntax - Convert errors to templates - refactor: Convert tests & configs to import syntax - refactor: Use indexOf in helpers - refactor: Modernize plugin syntax - Convert to ES6+ Class - Convert to ES6+ default export - Convert to const / let - Uses import syntax - Convert errors to templates - refactor: Modernize ExtractedModule syntax - Convert to ES6+ Class - Convert to ES6+ default export - Convert to const / let - Uses import syntax - Convert errors to templates - refactor: Removes fallbackLoader & loader deprecation warnings - refactor: Removes single option deprecation warning - refactor: Removes options.loader & options.fallbackLoader BREAKING CHANGE: Enforces `peerDependencies` of `"webpack": ">= 3.0.0-rc.0 || ^3.0.0"`. BREAKING CHANGE: Enforces `engines` of `"node": ">=4.3.0 < 5.0.0 || >= 5.10`
- Loading branch information
Showing
70 changed files
with
7,274 additions
and
1,124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"env", | ||
{ | ||
"useBuiltIns": true, | ||
"targets": { | ||
"node": "4.3" | ||
}, | ||
"exclude": [ | ||
"transform-async-to-generator", | ||
"transform-regenerator" | ||
] | ||
} | ||
] | ||
], | ||
"plugins": [ | ||
[ | ||
"transform-object-rest-spread", | ||
{ | ||
"useBuiltIns": true | ||
} | ||
] | ||
], | ||
"env": { | ||
"test": { | ||
"presets": [ | ||
"env" | ||
], | ||
"plugins": [ | ||
"transform-object-rest-spread" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
# editorconfig.org | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = tab | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
|
||
# Matches the exact files either package.json or .travis.yml | ||
[{package.json,.travis.yml}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[.md] | ||
insert_final_newline = false | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/node_modules | ||
/dist | ||
/test/cases | ||
/test/js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
{ | ||
"env": { | ||
"node": true | ||
}, | ||
"rules": { | ||
"strict": 0, | ||
"curly": 0, | ||
"quotes": 0, | ||
"no-shadow": 0, | ||
"no-underscore-dangle": 0 | ||
} | ||
"extends": "webpack", | ||
"rules": { | ||
"prefer-destructuring": 1, | ||
"prefer-rest-params": 0, | ||
"class-methods-use-this": 1, | ||
"no-plusplus": 1, | ||
"consistent-return": 0, | ||
"no-param-reassign": 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
* text=auto | ||
|
||
package-lock.json -diff | ||
bin/* eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<!-- | ||
1. Check the version of package you are using. If it's not the newest version, update and try again (see changelog while updating!). | ||
2. If the issue is still there, write a minimal project showing the problem and expected output. | ||
3. Link to the project and mention Node version and OS in your report. | ||
**IMPORTANT! You should use [Stack Overflow](https://stackoverflow.com/) for support related questions.** | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<!-- | ||
1. [Read and sign the CLA](https://cla.js.foundation/webpack/webpack.js.org). This needs to be done only once. PRs that haven't signed it won't be accepted. | ||
2. Check out the [development guide](https://webpack.js.org/development/) for the API and development guidelines. | ||
3. Read through the PR diff carefully as sometimes this can reveal issues. The work will be reviewed, but this can save some effort. | ||
4. Remove these instructions from your PR as they are for your eyes only. | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,49 @@ | ||
sudo: false | ||
dist: trusty | ||
language: node_js | ||
node_js: | ||
- node | ||
- 6 | ||
- 4 | ||
script: npm run travis | ||
|
||
branches: | ||
only: | ||
- master | ||
- feature/webpack3 | ||
jobs: | ||
fast_finish: true | ||
allow_failures: | ||
- env: WEBPACK_VERSION=canary | ||
include: | ||
- &test-latest | ||
stage: Webpack latest | ||
nodejs: 6 | ||
env: WEBPACK_VERSION=latest JOB_PART=test | ||
script: npm run travis:$JOB_PART | ||
- <<: *test-latest | ||
nodejs: 4.3 | ||
env: WEBPACK_VERSION=latest JOB_PART=test | ||
script: npm run travis:$JOB_PART | ||
- <<: *test-latest | ||
node_js: 8 | ||
env: WEBPACK_VERSION=latest JOB_PART=lint | ||
script: npm run travis:$JOB_PART | ||
- <<: *test-latest | ||
node_js: 8 | ||
env: WEBPACK_VERSION=latest JOB_PART=coverage | ||
script: npm run travis:$JOB_PART | ||
after_success: 'bash <(curl -s https://codecov.io/bash)' | ||
- stage: Webpack canary | ||
before_script: npm i --no-save git://github.com/webpack/webpack.git#master | ||
script: npm run travis:$JOB_PART | ||
node_js: 8 | ||
env: WEBPACK_VERSION=canary JOB_PART=test | ||
before_install: | ||
- 'if [[ `npm -v` != 5* ]]; then npm i -g npm@^5.0.0; fi' | ||
- nvm --version | ||
- node --version | ||
- npm --version | ||
before_script: | ||
- |- | ||
if [ "$WEBPACK_VERSION" ]; then | ||
npm i --no-save webpack@$WEBPACK_VERSION | ||
fi | ||
script: | ||
- 'npm run travis:$JOB_PART' | ||
after_success: | ||
- cat ./coverage/lcov.info | node_modules/.bin/coveralls --verbose | ||
- cat ./coverage/coverage.json | node_modules/codecov.io/bin/codecov.io.js | ||
- rm -rf ./coverage | ||
- 'bash <(curl -s https://codecov.io/bash)' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
branches: | ||
only: | ||
- master | ||
- feature/webpack3 | ||
init: | ||
- git config --global core.autocrlf input | ||
environment: | ||
matrix: | ||
- nodejs_version: '8' | ||
webpack_version: latest | ||
job_part: test | ||
- nodejs_version: '6' | ||
webpack_version: latest | ||
job_part: test | ||
build: 'off' | ||
matrix: | ||
fast_finish: true | ||
install: | ||
- ps: Install-Product node $env:nodejs_version x64 | ||
- npm i -g npm@^5.0.0 | ||
- npm install | ||
before_test: | ||
- cmd: npm install webpack@%webpack_version% | ||
test_script: | ||
- node --version | ||
- npm --version | ||
- cmd: npm run appveyor:%job_part% |
Oops, something went wrong.