Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7d022b3

Browse files
authoredMay 13, 2019
chore(defaults): update (#395)
1 parent a7dee8c commit 7d022b3

File tree

12 files changed

+1687
-1397
lines changed

12 files changed

+1687
-1397
lines changed
 

‎.circleci/config.yml

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

‎.github/ISSUE_TEMPLATE/BUG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ about: Something went awry and you'd like to tell us about it.
3333

3434
```js
3535
// webpack.config.js
36-
// If your bitchin' code blocks are over 20 lines, please paste a link to a gist
36+
// If your code blocks are over 20 lines, please paste a link to a gist
3737
// (https://gist.github.com).
3838
```
3939

‎.prettierrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
singleQuote: true,
3+
trailingComma: 'es5',
4+
arrowParens: 'always',
5+
};

‎README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,11 @@ If you'd like to extract the media queries from the extracted CSS (so mobile use
377377
[node-url]: https://nodejs.org
378378
[deps]: https://david-dm.org/webpack-contrib/mini-css-extract-plugin.svg
379379
[deps-url]: https://david-dm.org/webpack-contrib/mini-css-extract-plugin
380-
[tests]: https://img.shields.io/circleci/project/github/webpack-contrib/mini-css-extract-plugin.svg
381-
[tests-url]: https://circleci.com/gh/webpack-contrib/mini-css-extract-plugin
380+
[tests]: https://dev.azure.com/webpack-contrib/mini-css-extract-plugin/_apis/build/status/webpack-contrib.mini-css-extract-plugin?branchName=master
381+
[tests-url]: https://dev.azure.com/webpack-contrib/mini-css-extract-plugin/_build/latest?definitionId=6&branchName=master
382382
[cover]: https://codecov.io/gh/webpack-contrib/mini-css-extract-plugin/branch/master/graph/badge.svg
383383
[cover-url]: https://codecov.io/gh/webpack-contrib/mini-css-extract-plugin
384384
[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
385385
[chat-url]: https://gitter.im/webpack/webpack
386+
[size]: https://packagephobia.now.sh/badge?p=mini-css-extract-plugin
387+
[size-url]: https://packagephobia.now.sh/result?p=mini-css-extract-plugin

‎appveyor.yml

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

‎azure-pipelines.yml

Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
1+
trigger:
2+
- master
3+
- next
4+
5+
jobs:
6+
- job: Lint
7+
pool:
8+
vmImage: ubuntu-16.04
9+
steps:
10+
- task: NodeTool@0
11+
inputs:
12+
versionSpec: ^10.13.0
13+
displayName: 'Install Node.js'
14+
- task: Npm@1
15+
inputs:
16+
command: custom
17+
customCommand: i -g npm@latest
18+
displayName: 'Install latest NPM'
19+
- script: |
20+
node -v
21+
npm -v
22+
displayName: 'Print versions'
23+
- task: Npm@1
24+
inputs:
25+
command: custom
26+
customCommand: ci
27+
displayName: 'Install dependencies'
28+
- script: npm run lint
29+
displayName: 'Run lint'
30+
- script: npm run security
31+
displayName: 'Run NPM audit'
32+
- script: ./node_modules/.bin/commitlint-azure-pipelines
33+
displayName: 'Run lint commit message'
34+
35+
- job: Linux
36+
pool:
37+
vmImage: ubuntu-16.04
38+
strategy:
39+
maxParallel: 5
40+
matrix:
41+
node-12:
42+
node_version: ^12.0.0
43+
webpack_version: latest
44+
node-10:
45+
node_version: ^10.13.0
46+
webpack_version: latest
47+
node-8:
48+
node_version: ^8.9.0
49+
webpack_version: latest
50+
node-6:
51+
node_version: ^6.9.0
52+
webpack_version: latest
53+
node-8-canary:
54+
node_version: ^8.9.0
55+
webpack_version: next
56+
continue_on_error: true
57+
steps:
58+
- task: NodeTool@0
59+
inputs:
60+
versionSpec: $(node_version)
61+
displayName: 'Install Node.js $(node_version)'
62+
- task: Npm@1
63+
inputs:
64+
command: custom
65+
customCommand: i -g npm@latest
66+
displayName: 'Install latest NPM'
67+
- script: |
68+
node -v
69+
npm -v
70+
displayName: 'Print versions'
71+
- task: Npm@1
72+
inputs:
73+
command: custom
74+
customCommand: ci
75+
displayName: 'Install dependencies'
76+
- script: npm i webpack@$(webpack_version)
77+
displayName: 'Install "webpack@$(webpack_version)"'
78+
- script: npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit" || $(continue_on_error)
79+
displayName: 'Run tests with coverage'
80+
- task: PublishTestResults@2
81+
inputs:
82+
testRunTitle: 'Linux with Node.js $(node_version)'
83+
testResultsFiles: '**/junit.xml'
84+
condition: succeededOrFailed()
85+
displayName: 'Publish test results'
86+
- script: curl -s https://codecov.io/bash | bash -s -- -t $(CODECOV_TOKEN)
87+
condition: succeededOrFailed()
88+
displayName: 'Submit coverage data to codecov'
89+
90+
- job: macOS
91+
pool:
92+
vmImage: macOS-10.14
93+
strategy:
94+
maxParallel: 5
95+
matrix:
96+
node-12:
97+
node_version: ^12.0.0
98+
webpack_version: latest
99+
node-10:
100+
node_version: ^10.13.0
101+
webpack_version: latest
102+
node-8:
103+
node_version: ^8.9.0
104+
webpack_version: latest
105+
node-6:
106+
node_version: ^6.9.0
107+
webpack_version: latest
108+
node-8-canary:
109+
node_version: ^8.9.0
110+
webpack_version: next
111+
continue_on_error: true
112+
steps:
113+
- task: NodeTool@0
114+
inputs:
115+
versionSpec: $(node_version)
116+
displayName: 'Install Node.js $(node_version)'
117+
- task: Npm@1
118+
inputs:
119+
command: custom
120+
customCommand: i -g npm@latest
121+
displayName: 'Install latest NPM'
122+
- script: |
123+
node -v
124+
npm -v
125+
displayName: 'Print versions'
126+
- task: Npm@1
127+
inputs:
128+
command: custom
129+
customCommand: ci
130+
displayName: 'Install dependencies'
131+
- script: npm i webpack@$(webpack_version)
132+
displayName: 'Install "webpack@$(webpack_version)"'
133+
- script: npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit" || $(continue_on_error)
134+
displayName: 'Run tests with coverage'
135+
- task: PublishTestResults@2
136+
inputs:
137+
testRunTitle: 'Linux with Node.js $(node_version)'
138+
testResultsFiles: '**/junit.xml'
139+
condition: succeededOrFailed()
140+
displayName: 'Publish test results'
141+
- script: curl -s https://codecov.io/bash | bash -s -- -t $(CODECOV_TOKEN)
142+
condition: succeededOrFailed()
143+
displayName: 'Submit coverage data to codecov'
144+
145+
- job: Windows
146+
pool:
147+
vmImage: windows-2019
148+
strategy:
149+
maxParallel: 5
150+
matrix:
151+
node-12:
152+
node_version: ^12.0.0
153+
webpack_version: latest
154+
node-10:
155+
node_version: ^10.13.0
156+
webpack_version: latest
157+
node-8:
158+
node_version: ^8.9.0
159+
webpack_version: latest
160+
node-6:
161+
node_version: ^6.9.0
162+
webpack_version: latest
163+
node-8-canary:
164+
node_version: ^8.9.0
165+
webpack_version: next
166+
continue_on_error: true
167+
steps:
168+
- script: 'git config --global core.autocrlf input'
169+
displayName: 'Config git core.autocrlf'
170+
- checkout: self
171+
- task: NodeTool@0
172+
inputs:
173+
versionSpec: $(node_version)
174+
displayName: 'Install Node.js $(node_version)'
175+
- task: Npm@1
176+
inputs:
177+
command: custom
178+
customCommand: i -g npm@latest
179+
displayName: 'Install latest NPM'
180+
- script: |
181+
node -v
182+
npm -v
183+
displayName: 'Print versions'
184+
- task: Npm@1
185+
inputs:
186+
command: custom
187+
customCommand: ci
188+
displayName: 'Install dependencies'
189+
- script: npm i webpack@$(webpack_version)
190+
displayName: 'Install "webpack@$(webpack_version)"'
191+
- script: npm run test:coverage -- --ci --reporters="default" --reporters="jest-junit" || $(continue_on_error)
192+
displayName: 'Run tests with coverage'
193+
- task: PublishTestResults@2
194+
inputs:
195+
testRunTitle: 'Linux with Node.js $(node_version)'
196+
testResultsFiles: '**/junit.xml'
197+
condition: succeededOrFailed()
198+
displayName: 'Publish test results'
199+
- script: curl -s https://codecov.io/bash | bash -s -- -t $(CODECOV_TOKEN)
200+
condition: succeededOrFailed()
201+
displayName: 'Submit coverage data to codecov'

‎babel.config.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const MIN_BABEL_VERSION = 7;
2+
3+
module.exports = (api) => {
4+
api.assertVersion(MIN_BABEL_VERSION);
5+
api.cache(true);
6+
7+
return {
8+
presets: [
9+
[
10+
'@babel/preset-env',
11+
{
12+
targets: {
13+
node: '6.9.0',
14+
},
15+
},
16+
],
17+
],
18+
};
19+
};

‎commitlint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional'],
3+
};

‎husky.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
hooks: {
3+
'pre-commit': 'lint-staged',
4+
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
5+
},
6+
};

‎lint-staged.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
ignore: ['package-lock.json'],
3+
linters: {
4+
'*.js': ['eslint --fix', 'git add'],
5+
},
6+
};

‎package-lock.json

Lines changed: 1419 additions & 1144 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

Lines changed: 23 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,14 @@
1919
"clean": "del-cli dist",
2020
"commitlint": "commitlint --from=master",
2121
"lint": "eslint --cache src test",
22-
"prepublish": "npm run build",
22+
"prepare": "npm run build",
2323
"release": "standard-version",
2424
"security": "npm audit",
2525
"test:only": "jest",
2626
"test:watch": "jest --watch",
2727
"test:coverage": "jest --collectCoverageFrom='src/**/*.js' --coverage",
2828
"pretest": "npm run lint",
29-
"test": "npm run test:only",
30-
"ci:lint": "npm run lint && npm run security",
31-
"ci:test": "npm run test:only -- --runInBand",
32-
"ci:coverage": "npm run test:coverage -- --runInBand",
33-
"ci:lint:commits": "commitlint --from=origin/master --to=${CIRCLE_SHA1}",
29+
"test": "npm run test:coverage",
3430
"defaults": "webpack-defaults"
3531
},
3632
"files": [
@@ -46,74 +42,41 @@
4642
"webpack-sources": "^1.1.0"
4743
},
4844
"devDependencies": {
49-
"@babel/cli": "^7.4.3",
50-
"@babel/core": "^7.4.3",
51-
"@babel/preset-env": "^7.4.3",
52-
"@commitlint/cli": "^7.5.2",
53-
"@commitlint/config-conventional": "^7.5.0",
54-
"@webpack-contrib/defaults": "^3.1.1",
45+
"@babel/cli": "^7.4.4",
46+
"@babel/core": "^7.4.4",
47+
"@babel/preset-env": "^7.4.4",
48+
"@commitlint/cli": "^7.6.1",
49+
"@commitlint/config-conventional": "^7.6.0",
50+
"@webpack-contrib/defaults": "^4.0.1",
5551
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
5652
"acorn": "^6.1.1",
5753
"babel-eslint": "^10.0.1",
58-
"babel-jest": "^24.7.1",
59-
"cross-env": "^5.1.3",
54+
"babel-jest": "^24.8.0",
55+
"commitlint-azure-pipelines-cli": "^1.0.1",
56+
"cross-env": "^5.2.0",
6057
"css-loader": "^2.1.1",
61-
"del": "^4.1.0",
58+
"del": "^4.1.1",
6259
"del-cli": "^1.1.0",
6360
"es-check": "^5.0.0",
6461
"eslint": "^5.16.0",
65-
"eslint-plugin-import": "^2.16.0",
66-
"eslint-plugin-prettier": "^3.0.1",
62+
"eslint-plugin-import": "^2.17.2",
63+
"eslint-plugin-prettier": "^3.1.0",
6764
"file-loader": "^3.0.1",
68-
"husky": "^1.3.1",
69-
"jest": "^24.7.1",
70-
"lint-staged": "^8.1.5",
65+
"husky": "^2.2.0",
66+
"jest": "^24.8.0",
67+
"jest-junit": "^6.4.0",
68+
"lint-staged": "^8.1.6",
7169
"memory-fs": "^0.4.1",
72-
"pre-commit": "^1.2.2",
73-
"prettier": "^1.16.4",
74-
"standard-version": "^5.0.2",
75-
"webpack": "4.29.0",
76-
"webpack-cli": "^3.3.0",
70+
"prettier": "^1.17.0",
71+
"standard-version": "^6.0.1",
72+
"webpack": "^4.31.0",
73+
"webpack-cli": "^3.3.2",
7774
"webpack-dev-server": "^3.3.1"
7875
},
7976
"keywords": [
8077
"webpack",
8178
"css",
8279
"extract",
8380
"hmr"
84-
],
85-
"babel": {
86-
"presets": [
87-
[
88-
"@babel/preset-env",
89-
{
90-
"targets": {
91-
"node": "6.9.0"
92-
}
93-
}
94-
]
95-
]
96-
},
97-
"husky": {
98-
"hooks": {
99-
"pre-commit": "lint-staged",
100-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
101-
}
102-
},
103-
"lint-staged": {
104-
"*.js": [
105-
"eslint --fix",
106-
"git add"
107-
]
108-
},
109-
"commitlint": {
110-
"extends": [
111-
"@commitlint/config-conventional"
112-
]
113-
},
114-
"prettier": {
115-
"singleQuote": true,
116-
"trailingComma": "es5",
117-
"arrowParens": "always"
118-
}
81+
]
11982
}

0 commit comments

Comments
 (0)
Please sign in to comment.