This repository has been archived by the owner on Mar 17, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 257
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 (#167)
- Upgrades loader to webpack-defaults - Converts codebase to es6+ JavaScript syntax - Enforces webpack-contrib code style - Refactors to ESModule w/ a CJS proxy BREAKING CHANGE: Enforces Webpack standard NodeJS engines range. at the time of merge `>= 4.3 < 5.0.0 || >= 5.10`.
- Loading branch information
Showing
17 changed files
with
5,667 additions
and
320 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# editorconfig.org | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[.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,2 @@ | ||
/node_modules | ||
/dist |
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,6 @@ | ||
{ | ||
"extends": "webpack", | ||
"rules": { | ||
"no-undefined": 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
yarn.lock -diff | ||
* text=auto | ||
bin/* eol=lf | ||
package-lock.json -diff |
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,15 +1,7 @@ | ||
<!-- Before creating an issue please make sure you are using the latest version of file-loader. --> | ||
<!-- | ||
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. | ||
**Do you want to request a *feature* or report a *bug*?** | ||
<!-- Please ask questions on StackOverflow or the webpack Gitter (https://gitter.im/webpack/webpack). Questions will be closed. --> | ||
|
||
**What is the current behavior?** | ||
|
||
**If the current behavior is a bug, please provide the steps to reproduce.** | ||
<!-- A great way to do this is to provide your configuration via a GitHub gist. --> | ||
|
||
**What is the expected behavior?** | ||
|
||
**If this is a feature request, what is motivation or use case for changing the behavior?** | ||
|
||
**Please mention other relevant information such as your webpack version, Node.js version and Operating System.** | ||
**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,18 +1,5 @@ | ||
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. --> | ||
|
||
**What kind of change does this PR introduce?** | ||
<!-- E.g. a bugfix, feature, refactoring, build related change, etc… --> | ||
|
||
**Did you add tests for your changes?** | ||
|
||
**If relevant, did you update the README?** | ||
|
||
**Summary** | ||
|
||
<!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> | ||
<!-- Try to link to an open issue for more information. --> | ||
|
||
**Does this PR introduce a breaking change?** | ||
<!-- If this PR introduces a breaking change, please describe the impact and a migration path for existing applications. --> | ||
|
||
**Other information** | ||
<!-- | ||
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. | ||
--> |
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,10 +1,18 @@ | ||
# development | ||
/node_modules | ||
/coverage | ||
*.log | ||
|
||
# dotfiles | ||
.* | ||
!.gitignore | ||
*~ | ||
*#* | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
.eslintcache | ||
/dist | ||
/local | ||
/reports | ||
.DS_Store | ||
Thumbs.db | ||
.idea | ||
.vscode | ||
*.sublime-project | ||
*.sublime-workspace |
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,27 +1,35 @@ | ||
# appveyor file | ||
# http://www.appveyor.com/docs/appveyor-yml | ||
branches: | ||
only: | ||
- master | ||
|
||
init: | ||
- git config --global core.autocrlf input | ||
|
||
# what combinations to test | ||
environment: | ||
matrix: | ||
- nodejs_version: 0.10 | ||
- nodejs_version: 0.11 | ||
|
||
# combinations having this can fail | ||
matrix: | ||
allow_failures: | ||
- nodejs_version: 0.11 | ||
- nodejs_version: 8 | ||
webpack_version: 2.6.0 | ||
job_part: test | ||
- nodejs_version: 6 | ||
webpack_version: 2.6.0 | ||
job_part: test | ||
- nodejs_version: 4.3 | ||
webpack_version: 2.6.0 | ||
job_part: test | ||
|
||
install: | ||
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) | ||
- ps: Install-Product node $env:nodejs_version x64 | ||
- npm install | ||
|
||
build: off | ||
|
||
|
||
matrix: | ||
fast_finish: true | ||
|
||
before_test: | ||
- cmd: npm install webpack@^%webpack_version% | ||
|
||
test_script: | ||
- node --version | ||
- npm --version | ||
- cmd: npm test | ||
- cmd: npm run appveyor:%job_part% |
Oops, something went wrong.