Skip to content

Commit 41a547c

Browse files
committed
Initial commit
0 parents  commit 41a547c

36 files changed

+61661
-0
lines changed

.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+
}

.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

.eslintignore

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

.eslintrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "webpack"
3+
}

.eslintrc.yml

+247
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,247 @@
1+
env:
2+
es6: true
3+
node: true
4+
extends: 'eslint:recommended'
5+
parserOptions:
6+
sourceType: module
7+
rules:
8+
accessor-pairs: error
9+
array-bracket-spacing: 'off'
10+
array-callback-return: error
11+
arrow-body-style: error
12+
arrow-parens: error
13+
arrow-spacing: error
14+
block-scoped-var: 'off'
15+
block-spacing:
16+
- error
17+
- always
18+
brace-style:
19+
- error
20+
- 1tbs
21+
- allowSingleLine: true
22+
callback-return: 'off'
23+
camelcase:
24+
- error
25+
- properties: never
26+
capitalized-comments: 'off'
27+
class-methods-use-this: error
28+
comma-dangle: 'off'
29+
comma-spacing:
30+
- error
31+
- after: true
32+
before: false
33+
comma-style:
34+
- error
35+
- last
36+
complexity: error
37+
computed-property-spacing:
38+
- error
39+
- never
40+
consistent-return: 'off'
41+
consistent-this: error
42+
curly: 'off'
43+
default-case: 'off'
44+
dot-location: error
45+
dot-notation:
46+
- error
47+
- allowKeywords: true
48+
eol-last: error
49+
eqeqeq: 'off'
50+
func-call-spacing: error
51+
func-name-matching: 'off'
52+
func-names: 'off'
53+
func-style:
54+
- error
55+
- declaration
56+
generator-star-spacing: error
57+
global-require: 'off'
58+
guard-for-in: error
59+
handle-callback-err: error
60+
id-blacklist: error
61+
id-length: 'off'
62+
id-match: error
63+
indent: 'off'
64+
init-declarations: 'off'
65+
jsx-quotes: error
66+
key-spacing: error
67+
keyword-spacing: 'off'
68+
line-comment-position: 'off'
69+
linebreak-style:
70+
- error
71+
- unix
72+
lines-around-comment: error
73+
lines-around-directive: error
74+
max-depth: error
75+
max-len: 'off'
76+
max-lines: error
77+
max-nested-callbacks: error
78+
max-params: 'off'
79+
max-statements: 'off'
80+
max-statements-per-line: error
81+
multiline-ternary: 'off'
82+
new-cap: error
83+
new-parens: error
84+
newline-after-var: 'off'
85+
newline-before-return: 'off'
86+
newline-per-chained-call: 'off'
87+
no-alert: error
88+
no-array-constructor: error
89+
no-await-in-loop: error
90+
no-bitwise: error
91+
no-caller: error
92+
no-catch-shadow: error
93+
no-confusing-arrow: error
94+
no-continue: error
95+
no-div-regex: error
96+
no-duplicate-imports: error
97+
no-else-return: 'off'
98+
no-empty-function: error
99+
no-eq-null: 'off'
100+
no-eval: error
101+
no-extend-native: error
102+
no-extra-bind: error
103+
no-extra-label: error
104+
no-extra-parens: 'off'
105+
no-floating-decimal: error
106+
no-implicit-globals: error
107+
no-implied-eval: error
108+
no-inline-comments: 'off'
109+
no-inner-declarations:
110+
- error
111+
- functions
112+
no-invalid-this: 'off'
113+
no-iterator: error
114+
no-label-var: error
115+
no-labels: error
116+
no-lone-blocks: error
117+
no-lonely-if: error
118+
no-loop-func: error
119+
no-magic-numbers: 'off'
120+
no-mixed-operators: error
121+
no-mixed-requires: error
122+
no-multi-assign: error
123+
no-multi-spaces: 'off'
124+
no-multi-str: error
125+
no-multiple-empty-lines: error
126+
no-native-reassign: error
127+
no-negated-condition: 'off'
128+
no-negated-in-lhs: error
129+
no-nested-ternary: error
130+
no-new: error
131+
no-new-func: error
132+
no-new-object: error
133+
no-new-require: error
134+
no-new-wrappers: error
135+
no-octal-escape: error
136+
no-param-reassign: 'off'
137+
no-path-concat: error
138+
no-plusplus:
139+
- error
140+
- allowForLoopAfterthoughts: true
141+
no-process-env: error
142+
no-process-exit: error
143+
no-proto: error
144+
no-prototype-builtins: error
145+
no-restricted-globals: error
146+
no-restricted-imports: error
147+
no-restricted-modules: error
148+
no-restricted-properties: error
149+
no-restricted-syntax: error
150+
no-return-assign: error
151+
no-return-await: error
152+
no-script-url: error
153+
no-self-compare: error
154+
no-sequences: error
155+
no-shadow: error
156+
no-shadow-restricted-names: error
157+
no-spaced-func: error
158+
no-sync: 'off'
159+
no-tabs: 'off'
160+
no-template-curly-in-string: error
161+
no-ternary: 'off'
162+
no-throw-literal: error
163+
no-trailing-spaces:
164+
- error
165+
- skipBlankLines: true
166+
no-undef-init: error
167+
no-undefined: 'off'
168+
no-underscore-dangle: error
169+
no-unmodified-loop-condition: error
170+
no-unneeded-ternary: error
171+
no-unused-expressions: error
172+
no-use-before-define: 'off'
173+
no-useless-call: error
174+
no-useless-computed-key: error
175+
no-useless-concat: error
176+
no-useless-constructor: error
177+
no-useless-escape: error
178+
no-useless-rename: error
179+
no-useless-return: error
180+
no-var: 'off'
181+
no-void: error
182+
no-warning-comments: error
183+
no-whitespace-before-property: error
184+
no-with: error
185+
object-curly-newline: 'off'
186+
object-curly-spacing: 'off'
187+
object-property-newline:
188+
- error
189+
- allowMultiplePropertiesPerLine: true
190+
object-shorthand: 'off'
191+
one-var: 'off'
192+
one-var-declaration-per-line: error
193+
operator-assignment: error
194+
operator-linebreak: 'off'
195+
padded-blocks: 'off'
196+
prefer-arrow-callback: 'off'
197+
prefer-const: error
198+
prefer-destructuring:
199+
- error
200+
- array: false
201+
object: false
202+
prefer-numeric-literals: error
203+
prefer-promise-reject-errors: error
204+
prefer-reflect: 'off'
205+
prefer-rest-params: error
206+
prefer-spread: error
207+
prefer-template: 'off'
208+
quote-props: 'off'
209+
quotes: 'off'
210+
radix:
211+
- error
212+
- always
213+
require-await: error
214+
require-jsdoc: 'off'
215+
rest-spread-spacing: error
216+
semi: 'off'
217+
semi-spacing:
218+
- error
219+
- after: true
220+
before: false
221+
sort-imports: error
222+
sort-keys: 'off'
223+
sort-vars: error
224+
space-before-blocks: 'off'
225+
space-before-function-paren: 'off'
226+
space-in-parens:
227+
- error
228+
- never
229+
space-infix-ops: error
230+
space-unary-ops: error
231+
spaced-comment: 'off'
232+
strict: error
233+
symbol-description: error
234+
template-curly-spacing: error
235+
unicode-bom:
236+
- error
237+
- never
238+
valid-jsdoc: error
239+
vars-on-top: 'off'
240+
wrap-iife:
241+
- error
242+
- any
243+
wrap-regex: 'off'
244+
yield-star-spacing: error
245+
yoda:
246+
- error
247+
- never

.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

.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+
-->

.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+
-->

.gitignore

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

.travis.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
sudo: false
2+
language: node_js
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)'

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 -

0 commit comments

Comments
 (0)