Skip to content

Commit 4f28e16

Browse files
refactor: apply webpack-defaults (#134)
BREAKING CHANGE: requires `node >= v6.0.0` BREAKING CHANGE: requires `webpack >= v3.0.0`
1 parent 27026d2 commit 4f28e16

36 files changed

+801
-4096
lines changed

Diff for: .babelrc

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"presets": [
3+
[
4+
"env",
5+
{
6+
"useBuiltIns": true,
7+
"targets": {
8+
"node": "4.3"
9+
},
10+
"exclude": [
11+
"transform-async-to-generator",
12+
"transform-regenerator"
13+
]
14+
}
15+
]
16+
],
17+
"plugins": [
18+
[
19+
"transform-object-rest-spread",
20+
{
21+
"useBuiltIns": true
22+
}
23+
]
24+
],
25+
"env": {
26+
"test": {
27+
"presets": [
28+
"env"
29+
],
30+
"plugins": [
31+
"transform-object-rest-spread"
32+
]
33+
}
34+
}
35+
}

Diff for: .editorconfig

+15-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
1+
# editorconfig.org
12
root = true
23

34
[*.js]
4-
indent_style=tab
5-
trim_trailing_whitespace=true
5+
indent_style = tab
6+
trim_trailing_whitespace = true
7+
8+
[*]
9+
charset = utf-8
10+
indent_style = space
11+
indent_size = 2
12+
end_of_line = lf
13+
insert_final_newline = true
14+
trim_trailing_whitespace = true
15+
16+
[.md]
17+
insert_final_newline = false
18+
trim_trailing_whitespace = false

Diff for: .eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/node_modules
2+
/dist

Diff for: .eslintrc

+2-23
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,3 @@
11
{
2-
"env": {
3-
"node": true
4-
},
5-
"rules": {
6-
"strict": 0,
7-
"camelcase": 0,
8-
"curly": 0,
9-
"indent": [2, "tab", { "SwitchCase": 1 }],
10-
"eol-last": 1,
11-
"no-shadow": 0,
12-
"no-redeclare": 2,
13-
"no-extra-bind": 1,
14-
"no-empty": 0,
15-
"no-process-exit": 1,
16-
"no-underscore-dangle": 0,
17-
"no-use-before-define": 0,
18-
"no-unused-vars": 0,
19-
"consistent-return": 0,
20-
"no-inner-declarations": 1,
21-
"no-loop-func": 1,
22-
"space-before-function-paren": [2, "never"]
23-
}
24-
}
2+
"extends": "webpack"
3+
}

Diff for: .gitattributes

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package-lock.json -diff
2+
* text=auto
3+
bin/* eol=lf

Diff for: .github/ISSUE_TEMPLATE.md

+6-40
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,7 @@
1-
## **BEFORE YOU SUBMIT** please read the following:
2-
If you have a support request or question please
3-
submit them to [StackOverflow](http://stackoverflow.com/questions/tagged/webpack) using the tag `[webpack]` or the [webpack Gitter](https://gitter.im/webpack/webpack). Future support requests will be closed.
4-
(remove this from issue)
1+
<!--
2+
1. Check the version of package you are using. If it's not the newest version, update and try again (see changelog while updating!).
3+
2. If the issue is still there, write a minimal project showing the problem and expected output.
4+
3. Link to the project and mention Node version and OS in your report.
55
6-
7-
8-
**I'm submitting a bug report**
9-
**I'm submitting a feature request**
10-
**I'm submitting a support request** => Please do not submit support request here, see note at the top of this template.
11-
(remove inappropriate sentences)
12-
13-
14-
**Webpack version:**
15-
1.10.x / 2.x
16-
17-
**HTML-Loader version:**
18-
0.3.x / 0.4.x
19-
20-
**Please tell us about your environment:**
21-
OSX 10.x / Linux / Windows 10
22-
23-
24-
**Current behavior:**
25-
26-
27-
**Expected/desired behavior:**
28-
29-
30-
* **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem along with a gist/jsbin of your webpack configuration.**
31-
32-
33-
* **What is the expected behavior?**
34-
35-
36-
* **What is the motivation / use case for changing the behavior?**
37-
38-
39-
* **Browser:** [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
40-
41-
* **Language:** [all | TypeScript X.X | ES6/7 | ES5 | Dart | ...]
6+
**IMPORTANT! You should use [Stack Overflow](https://stackoverflow.com/) for support related questions.**
7+
-->

Diff for: .github/PULL_REQUEST_TEMPLATE.md

+5-34
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,5 @@
1-
**Please check if the PR fulfills these requirements**
2-
- [ ] Tests for the changes have been added (for bug fixes / features)
3-
- [ ] Docs have been added / updated (for bug fixes / features)
4-
5-
6-
**What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)
7-
- [ ] Bugfix
8-
- [ ] Feature
9-
- [ ] Code style update (formatting, local variables)
10-
- [ ] Refactoring (no functional changes, no api changes)
11-
- [ ] Build related changes
12-
- [ ] CI related changes
13-
- [ ] Other... Please describe:
14-
15-
**What is the current behavior?** (You can also link to an open issue here)
16-
17-
18-
19-
**What is the new behavior?**
20-
21-
22-
23-
**Does this PR introduce a breaking change?**
24-
- [ ] Yes
25-
- [ ] No
26-
27-
If this PR contains a breaking change, please describe the following...
28-
29-
* Impact:
30-
* Migration path for existing applications:
31-
* Github Issue(s) this is regarding:
32-
33-
34-
**Other information**:
1+
<!--
2+
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.
3+
2. Check out the [development guide](https://webpack.js.org/development/) for the API and development guidelines.
4+
3. Read through the PR diff carefully as sometimes this can reveal issues. The work will be reviewed, but this can save some effort.
5+
-->

Diff for: .gitignore

+16
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,19 @@ coverage
44
*.sw*
55

66
npm-debug.log
7+
8+
logs
9+
*.log
10+
npm-debug.log*
11+
.eslintcache
12+
/coverage
13+
/dist
14+
/local
15+
/reports
16+
/node_modules
17+
.DS_Store
18+
Thumbs.db
19+
.idea
20+
.vscode
21+
*.sublime-project
22+
*.sublime-workspace

Diff for: .travis.yml

-12
This file was deleted.

Diff for: CONTRIBUTING.md

-42
This file was deleted.

Diff for: appveyor.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
branches:
2+
only:
3+
- master
4+
init:
5+
- git config --global core.autocrlf input
6+
environment:
7+
matrix:
8+
- nodejs_version: '8'
9+
webpack_version: latest
10+
job_part: test
11+
- nodejs_version: '6'
12+
webpack_version: latest
13+
job_part: test
14+
- nodejs_version: '4.3'
15+
webpack_version: latest
16+
job_part: test
17+
build: 'off'
18+
matrix:
19+
fast_finish: true
20+
install:
21+
- 'ps: Install-Product node $env:nodejs_version x64'
22+
- npm install
23+
before_test:
24+
- 'cmd: npm install webpack@%webpack_version%'
25+
test_script:
26+
- node --version
27+
- npm --version
28+
- 'cmd: npm run appveyor:%job_part%'

0 commit comments

Comments
 (0)