-
-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(defaults): update
webpack-defaults
v1.6.0...2.0.0 (#161)
- Loading branch information
1 parent
82e094b
commit ffa6848
Showing
9 changed files
with
244 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
unit_tests: &unit_tests | ||
steps: | ||
- checkout | ||
- setup_remote_docker | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
- run: | ||
name: NPM Rebuild | ||
command: npm rebuild | ||
- run: | ||
name: Run unit tests. | ||
command: npm run ci:test | ||
canary_tests: &canary_tests | ||
steps: | ||
- checkout | ||
- setup_remote_docker | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
- run: | ||
name: NPM Rebuild | ||
command: npm rebuild | ||
- run: | ||
name: Install Webpack Canary | ||
command: npm i --no-save webpack@next | ||
- run: | ||
name: Run unit tests. | ||
command: npm run ci:test | ||
|
||
version: 2 | ||
jobs: | ||
dependency_cache: | ||
docker: | ||
- image: webpackcontrib/circleci-node-base:latest | ||
steps: | ||
- checkout | ||
- setup_remote_docker | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
- run: | ||
name: Install Dependencies | ||
command: npm install | ||
- save_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
paths: | ||
- ./node_modules | ||
|
||
node8_webpack_latest: | ||
docker: | ||
- image: webpackcontrib/circleci-node8:latest | ||
steps: | ||
- checkout | ||
- setup_remote_docker | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
- run: | ||
name: NPM Rebuild | ||
command: npm rebuild | ||
- run: | ||
name: Run unit tests. | ||
command: npm run ci:coverage | ||
- run: | ||
name: Submit coverage data to codecov. | ||
command: bash <(curl -s https://codecov.io/bash) | ||
when: on_success | ||
node6_webpack_latest: | ||
docker: | ||
- image: webpackcontrib/circleci-node6:latest | ||
<<: *unit_tests | ||
node9_webpack_latest: | ||
docker: | ||
- image: webpackcontrib/circleci-node9:latest | ||
<<: *unit_tests | ||
node8_webpack_canary: | ||
docker: | ||
- image: webpackcontrib/circleci-node8:latest | ||
<<: *canary_tests | ||
analysis: | ||
docker: | ||
- image: webpackcontrib/circleci-node-base:latest | ||
steps: | ||
- checkout | ||
- setup_remote_docker | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
- run: | ||
name: NPM Rebuild | ||
command: npm rebuild | ||
- run: | ||
name: Run linting. | ||
command: npm run lint | ||
- run: | ||
name: Run NSP Security Check. | ||
command: npm run security | ||
- run: | ||
name: Validate Commit Messages | ||
command: npm run ci:lint:commits | ||
publish: | ||
docker: | ||
- image: webpackcontrib/circleci-node-base:latest | ||
steps: | ||
- checkout | ||
- setup_remote_docker | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package.json" }} | ||
- run: | ||
name: NPM Rebuild | ||
command: npm rebuild | ||
- run: | ||
name: Validate Commit Messages | ||
command: npm run release:validate | ||
- run: | ||
name: Publish to NPM | ||
command: printf "noop running conventional-github-releaser" | ||
|
||
version: 2.0 | ||
workflows: | ||
version: 2 | ||
validate-publish: | ||
jobs: | ||
- dependency_cache | ||
- node6_webpack_latest: | ||
requires: | ||
- dependency_cache | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- node8_webpack_latest: | ||
requires: | ||
- dependency_cache | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- node9_webpack_latest: | ||
requires: | ||
- dependency_cache | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- node8_webpack_canary: | ||
requires: | ||
- dependency_cache | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- analysis: | ||
requires: | ||
- node6_webpack_latest | ||
- node8_webpack_latest | ||
- node9_webpack_latest | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- publish: | ||
requires: | ||
- node6_webpack_latest | ||
- node8_webpack_latest | ||
- node9_webpack_latest | ||
- analysis | ||
filters: | ||
branches: | ||
only: | ||
- master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = { | ||
root: true, | ||
plugins: ['prettier'], | ||
extends: ['@webpack-contrib/eslint-config-webpack'], | ||
rules: { | ||
'prettier/prettier': [ | ||
'error', | ||
{ singleQuote: true, trailingComma: 'es5', arrowParens: 'always' }, | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# These are the default owners for everything in | ||
# webpack-contrib | ||
@webpack-contrib/org-maintainers | ||
|
||
# Add repository specific users / groups | ||
# below here for libs that are not maintained by the org. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "es5", | ||
"arrowParens": "always" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
coverage: | ||
precision: 2 | ||
round: down | ||
range: 70...100 | ||
|
||
status: | ||
project: no | ||
patch: yes | ||
|
||
comment: 'off' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* eslint-disable */ | ||
const Configuration = { | ||
extends: ['@commitlint/config-angular'], | ||
|
||
rules: { | ||
'body-leading-blank': [1, 'always'], | ||
'footer-leading-blank': [1, 'always'], | ||
'header-max-length': [2, 'always', 72], | ||
'scope-case': [2, 'always', 'lower-case'], | ||
'subject-case': [2, 'never', ['start-case', 'pascal-case', 'upper-case']], | ||
'subject-empty': [2, 'never'], | ||
'subject-full-stop': [2, 'never', '.'], | ||
'type-case': [2, 'always', 'lower-case'], | ||
'type-empty': [2, 'never'], | ||
'type-enum': [ | ||
'build', | ||
'chore', | ||
'ci', | ||
'docs', | ||
'feat', | ||
'fix', | ||
'perf', | ||
'refactor', | ||
'revert', | ||
'style', | ||
'test', | ||
], | ||
}, | ||
}; | ||
|
||
module.exports = Configuration; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters