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

Commit 7ebf0d2

Browse files
chore(defaults): update (#168)
1 parent d7429e2 commit 7ebf0d2

File tree

11 files changed

+2423
-3458
lines changed

11 files changed

+2423
-3458
lines changed

.circleci/config.yml

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
unit_tests: &unit_tests
2+
steps:
3+
- checkout
4+
- restore_cache:
5+
key: dependency-cache-{{ checksum "package-lock.json" }}
6+
- run:
7+
name: Install Latest NPM.
8+
# npm@3 is buggy
9+
command: if [[ $(npm -v | cut -c -1) > 3 ]] ; then npm i -g npm@latest; else echo "Skip npm updating"; fi
10+
- run:
11+
name: NPM Install.
12+
command: npm ci || npm i
13+
- run:
14+
name: Run Test.
15+
command: npm run ci:test
16+
canary_tests: &canary_tests
17+
steps:
18+
- checkout
19+
- restore_cache:
20+
key: dependency-cache-{{ checksum "package-lock.json" }}
21+
- run:
22+
name: Install Latest NPM.
23+
command: npm i -g npm@latest
24+
- run:
25+
name: NPM Install.
26+
command: npm ci
27+
- run:
28+
name: Install Webpack Canary.
29+
command: npm i --no-save webpack@next
30+
- run:
31+
name: Run Test.
32+
command: if [[ $(compver --name webpack --gte next --lt latest) < 1 ]] ; then printf "Next is older than Latest - Skipping Canary Suite"; else npm run ci:test || true; fi
33+
34+
version: 2
35+
jobs:
36+
dependency_cache:
37+
docker:
38+
- image: webpackcontrib/circleci-node-base:latest
39+
steps:
40+
- checkout
41+
- restore_cache:
42+
key: dependency-cache-{{ checksum "package-lock.json" }}
43+
- run:
44+
name: Install Latest NPM.
45+
command: npm i -g npm@latest
46+
- run:
47+
name: NPM Install.
48+
command: npm ci
49+
- save_cache:
50+
key: dependency-cache-{{ checksum "package-lock.json" }}
51+
paths:
52+
- ./node_modules
53+
analysis:
54+
docker:
55+
- image: webpackcontrib/circleci-node-base:latest
56+
steps:
57+
- checkout
58+
- restore_cache:
59+
key: dependency-cache-{{ checksum "package-lock.json" }}
60+
- run:
61+
name: Install Latest NPM.
62+
command: npm i -g npm@latest
63+
- run:
64+
name: NPM Install.
65+
command: npm ci
66+
- run:
67+
name: Run linting.
68+
command: npm run lint
69+
- run:
70+
name: Run NPM Audit.
71+
command: npm run security
72+
- run:
73+
name: Validate Commit Messages.
74+
command: npm run ci:lint:commits
75+
node6-latest:
76+
docker:
77+
- image: webpackcontrib/circleci-node6:latest
78+
<<: *unit_tests
79+
node8-latest:
80+
docker:
81+
- image: webpackcontrib/circleci-node8:latest
82+
<<: *unit_tests
83+
node10-latest:
84+
docker:
85+
- image: webpackcontrib/circleci-node10:latest
86+
steps:
87+
- checkout
88+
- restore_cache:
89+
key: dependency-cache-{{ checksum "package-lock.json" }}
90+
- run:
91+
name: Install Latest NPM.
92+
command: npm i -g npm@latest
93+
- run:
94+
name: NPM Install.
95+
command: npm ci
96+
- run:
97+
name: Run Test.
98+
command: npm run ci:coverage
99+
- run:
100+
name: Submit coverage data to codecov.
101+
command: bash <(curl -s https://codecov.io/bash)
102+
when: on_success
103+
node8-canary:
104+
docker:
105+
- image: webpackcontrib/circleci-node8:latest
106+
<<: *canary_tests
107+
108+
workflows:
109+
version: 2
110+
test:
111+
jobs:
112+
- dependency_cache
113+
- analysis:
114+
requires:
115+
- dependency_cache
116+
filters:
117+
tags:
118+
only: /.*/
119+
- node6-latest:
120+
requires:
121+
- dependency_cache
122+
filters:
123+
tags:
124+
only: /.*/
125+
- node8-latest:
126+
requires:
127+
- analysis
128+
- node6-latest
129+
filters:
130+
tags:
131+
only: /.*/
132+
- node10-latest:
133+
requires:
134+
- analysis
135+
- node6-latest
136+
filters:
137+
tags:
138+
only: /.*/
139+
- node8-canary:
140+
requires:
141+
- analysis
142+
- node6-latest
143+
filters:
144+
tags:
145+
only: /.*/

.eslintrc.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ module.exports = {
33
plugins: ['prettier'],
44
extends: ['@webpack-contrib/eslint-config-webpack'],
55
rules: {
6-
'prettier/prettier': [
7-
'error',
8-
{ singleQuote: true, trailingComma: 'es5', arrowParens: 'always' },
9-
],
6+
'prettier/prettier': ['error'],
107
},
118
};

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
package-lock.json -diff
22
* text=auto
33
bin/* eol=lf
4+
yarn.lock -diff

.github/ISSUE_TEMPLATE/BUG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ about: Something went awry and you'd like to tell us about it.
1919
* Node Version:
2020
* NPM Version:
2121
* webpack Version:
22-
* webpack-defaults Version:
22+
* @webpack-contrib/defaults Version:
2323

2424
### Expected Behavior
2525

.github/ISSUE_TEMPLATE/FEATURE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ about: Suggest an idea for this project
1919
* Node Version:
2020
* NPM Version:
2121
* webpack Version:
22-
* webpack-defaults Version:
22+
* @webpack-contrib/defaults Version:
2323

2424
### Feature Proposal
2525

.github/ISSUE_TEMPLATE/MODIFICATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ about: Would you like something work differently? Have an alternative approach?
1919
* Node Version:
2020
* NPM Version:
2121
* webpack Version:
22-
* webpack-defaults Version:
22+
* @webpack-contrib/defaults Version:
2323

2424

2525
### Expected Behavior / Situation

.prettierrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515

1616
Project configuration and boilerplate defaults for webpack projects
1717

18-
## Requirements
19-
20-
This module requires a minimum of Node v6.9.0 and Webpack v4.0.0.
21-
2218
## Getting Started
2319

2420
To begin, you'll need to install `webpack-defaults`:
@@ -46,21 +42,15 @@ Please take a moment to read our contributing guidelines if you haven't yet done
4642

4743
[npm]: https://img.shields.io/npm/v/@webpack-contrib/defaults.svg
4844
[npm-url]: https://npmjs.com/package/@webpack-contrib/defaults
49-
5045
[node]: https://img.shields.io/node/v/@webpack-contrib/defaults.svg
5146
[node-url]: https://nodejs.org
52-
5347
[deps]: https://david-dm.org/webpack-contrib/webpack-defaults.svg
5448
[deps-url]: https://david-dm.org/webpack-contrib/webpack-defaults
55-
56-
[tests]: https://img.shields.io/circleci/project/github/webpack-contrib/webpack-defaults.svg
49+
[tests]: https://img.shields.io/circleci/project/github/webpack-contrib/webpack-defaults.svg
5750
[tests-url]: https://circleci.com/gh/webpack-contrib/webpack-defaults
58-
5951
[cover]: https://codecov.io/gh/webpack-contrib/webpack-defaults/branch/master/graph/badge.svg
6052
[cover-url]: https://codecov.io/gh/webpack-contrib/webpack-defaults
61-
6253
[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
6354
[chat-url]: https://gitter.im/webpack/webpack
64-
6555
[size]: https://packagephobia.now.sh/badge?p=@webpack-contrib/defaults
6656
[size-url]: https://packagephobia.now.sh/result?p=@webpack-contrib/defaults

appveyor.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
branches:
2+
only:
3+
- master
4+
- next
5+
init:
6+
- git config --global core.autocrlf input
7+
cache:
8+
- node_modules
9+
- '%APPDATA%\npm-cache'
10+
environment:
11+
matrix:
12+
- nodejs_version: '6'
13+
webpack_version: latest
14+
job_part: test
15+
- nodejs_version: '8'
16+
webpack_version: latest
17+
job_part: test
18+
- nodejs_version: '10'
19+
webpack_version: latest
20+
job_part: test
21+
- nodejs_version: '11'
22+
webpack_version: latest
23+
job_part: test
24+
- nodejs_version: '8'
25+
webpack_version: next
26+
job_part: test
27+
build: 'off'
28+
matrix:
29+
fast_finish: true
30+
allow_failures:
31+
- nodejs_version: '8'
32+
webpack_version: next
33+
job_part: test
34+
install:
35+
- ps: Install-Product node $env:nodejs_version x64
36+
- npm i -g npm@latest
37+
- npm ci
38+
- npm i -g @webpack-contrib/tag-versions
39+
before_test:
40+
- cmd: npm install webpack@%webpack_version%
41+
test_script:
42+
- node --version
43+
- npm --version
44+
- cmd: FOR /F %%I in ('compver --name webpack --gte %webpack_version% --lt latest') do SET COMPARED_VERSION_RESULT=%%I
45+
- cmd: IF %COMPARED_VERSION_RESULT% NEQ -1 (npm run ci:%job_part%) ELSE (ECHO "Next is older than Latest - Skipping Canary Suite")

0 commit comments

Comments
 (0)