Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit a4c9ec5

Browse files
authored
chore: update to latest webpack defaults (#13)
1 parent 6b1c124 commit a4c9ec5

18 files changed

+13130
-74
lines changed

.circleci/config.yml

+161
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
unit_tests: &unit_tests
2+
steps:
3+
- checkout
4+
- setup_remote_docker
5+
- restore_cache:
6+
key: dependency-cache-{{ checksum "package-lock.json" }}
7+
- run:
8+
name: NPM Rebuild
9+
command: npm install
10+
- run:
11+
name: Run unit tests.
12+
command: npm run ci:test
13+
canary_tests: &canary_tests
14+
steps:
15+
- checkout
16+
- setup_remote_docker
17+
- restore_cache:
18+
key: dependency-cache-{{ checksum "package-lock.json" }}
19+
- run:
20+
name: NPM Rebuild
21+
command: npm install
22+
- run:
23+
name: Install Webpack Canary
24+
command: npm i --no-save webpack@next
25+
- run:
26+
name: Run unit tests.
27+
command: npm run ci:test
28+
29+
version: 2
30+
jobs:
31+
dependency_cache:
32+
docker:
33+
- image: webpackcontrib/circleci-node-base:latest
34+
steps:
35+
- checkout
36+
- setup_remote_docker
37+
- restore_cache:
38+
key: dependency-cache-{{ checksum "package-lock.json" }}
39+
- run:
40+
name: Install Dependencies
41+
command: npm install
42+
- save_cache:
43+
key: dependency-cache-{{ checksum "package-lock.json" }}
44+
paths:
45+
- ./node_modules
46+
47+
node8-latest:
48+
docker:
49+
- image: webpackcontrib/circleci-node8:latest
50+
steps:
51+
- checkout
52+
- setup_remote_docker
53+
- restore_cache:
54+
key: dependency-cache-{{ checksum "package-lock.json" }}
55+
- run:
56+
name: NPM Rebuild
57+
command: npm install
58+
- run:
59+
name: Run unit tests.
60+
command: npm run ci:coverage
61+
- run:
62+
name: Submit coverage data to codecov.
63+
command: bash <(curl -s https://codecov.io/bash)
64+
when: on_success
65+
node6-latest:
66+
docker:
67+
- image: webpackcontrib/circleci-node6:latest
68+
<<: *unit_tests
69+
node9-latest:
70+
docker:
71+
- image: webpackcontrib/circleci-node9:latest
72+
<<: *unit_tests
73+
node8-canary:
74+
docker:
75+
- image: webpackcontrib/circleci-node8:latest
76+
<<: *canary_tests
77+
analysis:
78+
docker:
79+
- image: webpackcontrib/circleci-node-base:latest
80+
steps:
81+
- checkout
82+
- setup_remote_docker
83+
- restore_cache:
84+
key: dependency-cache-{{ checksum "package-lock.json" }}
85+
- run:
86+
name: NPM Rebuild
87+
command: npm install
88+
- run:
89+
name: Run linting.
90+
command: npm run lint
91+
- run:
92+
name: Run NSP Security Check.
93+
command: npm run security
94+
- run:
95+
name: Validate Commit Messages
96+
command: npm run ci:lint:commits
97+
publish:
98+
docker:
99+
- image: webpackcontrib/circleci-node-base:latest
100+
steps:
101+
- checkout
102+
- setup_remote_docker
103+
- restore_cache:
104+
key: dependency-cache-{{ checksum "package-lock.json" }}
105+
- run:
106+
name: NPM Rebuild
107+
command: npm install
108+
- run:
109+
name: Validate Commit Messages
110+
command: npm run release:validate
111+
- run:
112+
name: Publish to NPM
113+
command: printf "noop running conventional-github-releaser"
114+
115+
version: 2.0
116+
workflows:
117+
version: 2
118+
validate-publish:
119+
jobs:
120+
- dependency_cache
121+
- node6-latest:
122+
requires:
123+
- dependency_cache
124+
filters:
125+
tags:
126+
only: /.*/
127+
- analysis:
128+
requires:
129+
- dependency_cache
130+
filters:
131+
tags:
132+
only: /.*/
133+
- node8-latest:
134+
requires:
135+
- analysis
136+
- node6-latest
137+
filters:
138+
tags:
139+
only: /.*/
140+
- node9-latest:
141+
requires:
142+
- analysis
143+
- node6-latest
144+
filters:
145+
tags:
146+
only: /.*/
147+
- node8-canary:
148+
requires:
149+
- analysis
150+
- node6-latest
151+
filters:
152+
tags:
153+
only: /.*/
154+
- publish:
155+
requires:
156+
- node8-latest
157+
- node9-latest
158+
filters:
159+
branches:
160+
only:
161+
- master

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

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
root: true,
3+
plugins: ['prettier'],
4+
extends: ['@webpack-contrib/eslint-config-webpack'],
5+
rules: {
6+
'prettier/prettier': [
7+
'error',
8+
{ singleQuote: true, trailingComma: 'es5', arrowParens: 'always' },
9+
],
10+
},
11+
};

.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

.github/CODEOWNERS

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# These are the default owners for everything in
2+
# webpack-contrib
3+
@webpack-contrib/org-maintainers
4+
5+
# Add repository specific users / groups
6+
# below here for libs that are not maintained by the org.

.github/ISSUE_TEMPLATE.md

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<!--
2+
Issues are so 🔥
3+
4+
If you remove or skip this template, you'll make the 🐼 sad and the mighty god
5+
of Github will appear and pile-drive the close button from a great height
6+
while making animal noises.
7+
8+
👉🏽 Need support, advice, or help? Don't open an issue!
9+
Head to StackOverflow or https://gitter.im/webpack/webpack.
10+
-->
11+
12+
* Operating System:
13+
* Node Version:
14+
* NPM Version:
15+
* webpack Version:
16+
* webpack-serve Version:
17+
18+
<!-- Please place an x (no spaces!) in all [ ] that apply -->
19+
20+
This issue is for a:
21+
22+
- [ ] **bug**
23+
- [ ] **feature** request
24+
- [ ] **modification** request
25+
26+
### Code
27+
28+
##### CLI Command
29+
30+
```bash
31+
# paste the CLI command you're using. if this isn't applicable, it's safe to remove.
32+
$ {the command}
33+
```
34+
35+
##### webpack.config.js
36+
37+
```js
38+
// If your bitchin' code blocks are over 20 lines, please paste a link to a gist
39+
// (https://gist.github.com).
40+
```
41+
42+
```js
43+
// additional code, HEY YO remove this block if you don't need it
44+
```
45+
46+
### Expected Behavior
47+
48+
<!-- Remove this section if not reporting a bug or modification request. -->
49+
50+
### Actual Behavior
51+
52+
<!-- Remove this section if not reporting a bug or modification request. -->
53+
54+
### How Do We Reproduce?
55+
56+
<!--
57+
Remove this section if not reporting a bug.
58+
59+
If your webpack config is over 50 lines long, please provide a URL to a repo
60+
for your beefy 🍖 app that we can use to reproduce.
61+
-->
62+
63+
### New Feature Use Case
64+
65+
<!-- Remove this section if not requesting a feature -->

.github/PULL_REQUEST_TEMPLATE.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!--
2+
HOLY CRAP a Pull Request. We ❤️ those!
3+
4+
If you remove or skip this template, you'll make the 🐼 sad and the mighty god
5+
of Github will appear and pile-drive the close button from a great height
6+
while making animal noises.
7+
8+
Please place an x (no spaces!) in all [ ] that apply
9+
-->
10+
11+
This PR contains a:
12+
13+
- [ ] **bugfix**
14+
- [ ] new **feature**
15+
- [ ] **code refactor**
16+
- [ ] **test update** <!-- if bug or feature is checked, this should be too -->
17+
- [ ] **typo fix**
18+
- [ ] **metadata update**
19+
20+
### Motivation / Use-Case
21+
22+
<!--
23+
Please explain the motivation or use-case for your change.
24+
What existing problem does the PR solve?
25+
If this PR addresses an issue, please link to the issue.
26+
-->
27+
28+
### Breaking Changes
29+
30+
<!--
31+
If this PR introduces a breaking change, please describe the impact and a
32+
migration path for existing applications.
33+
-->
34+
35+
### Additional Info

.gitignore

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

.prettierrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "es5",
4+
"arrowParens": "always"
5+
}

CHANGELOG.md

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

0 commit comments

Comments
 (0)