Skip to content
This repository was archived by the owner on Dec 22, 2020. It is now read-only.

Commit 688b7a2

Browse files
authored
refactor: apply webpack defaults (#21)
- Applies webpack-defaults upgrades - Converts tests over to Jest - Updates to es6 syntax w/ ES Modules - Adds a commonjs proxy to main BREAKING CHANGE: Enforces a minimum NodeJS version of `4.3` via engines
1 parent 9692a99 commit 688b7a2

21 files changed

+4867
-214
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

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[.md]
12+
insert_final_newline = false
13+
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-22
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,3 @@
11
{
2-
"env": {
3-
"node": true
4-
},
5-
"rules": {
6-
"strict": 0,
7-
"camelcase": 0,
8-
"curly": 0,
9-
"indent": [2, 2, { "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-
}
23-
}
2+
"extends": "webpack"
3+
}

Diff for: .gitattributes

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

Diff for: .github/ISSUE_TEMPLATE.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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.
5+
6+
**IMPORTANT! You should use [Stack Overflow](https://stackoverflow.com/) for support related questions.**
7+
-->

Diff for: .github/PULL_REQUEST_TEMPLATE.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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

+17-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
1-
node_modules
1+
node_modules
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
.eslintcache
7+
/coverage
8+
/dist
9+
/local
10+
/reports
11+
/node_modules
12+
.DS_Store
13+
Thumbs.db
14+
.idea
15+
.vscode
16+
*.sublime-project
17+
*.sublime-workspace

Diff for: .travis.yml

+30-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
sudo: false
22
language: node_js
3-
node_js:
4-
- "4"
5-
- "6"
3+
branches:
4+
only:
5+
- master
6+
matrix:
7+
fast_finish: true
8+
include:
9+
- os: linux
10+
node_js: '7'
11+
env: WEBPACK_VERSION="2.2.0" JOB_PART=lint
12+
- os: linux
13+
node_js: '4.3'
14+
env: WEBPACK_VERSION="2.2.0" JOB_PART=test
15+
- os: linux
16+
node_js: '6'
17+
env: WEBPACK_VERSION="2.2.0" JOB_PART=test
18+
- os: linux
19+
node_js: '7'
20+
env: WEBPACK_VERSION="2.2.0" JOB_PART=coverage
21+
before_install:
22+
- nvm --version
23+
- node --version
24+
before_script:
25+
- |-
26+
if [ "$WEBPACK_VERSION" ]; then
27+
yarn add webpack@^$WEBPACK_VERSION
28+
fi
29+
script:
30+
- 'yarn run travis:$JOB_PART'
31+
after_success:
32+
- 'bash <(curl -s https://codecov.io/bash)'

Diff for: CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4+
5+
x.x.x / <year>-<month>-<day>
6+
==================
7+
8+
* Bug fix -
9+
* Feature -
10+
* Chore -
11+
* Docs -

Diff for: CONTRIBUTING.md

-42
This file was deleted.

Diff for: ISSUE_TEMPLATE.md

-41
This file was deleted.

Diff for: LICENSE

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
Copyright JS Foundation and other contributors
32

43
Permission is hereby granted, free of charge, to any person obtaining

Diff for: PULL_REQUEST_TEMPLATE.md

-34
This file was deleted.

Diff for: index.js

-26
This file was deleted.

0 commit comments

Comments
 (0)