run prettier on config files
This commit is contained in:
parent
c74bee9cef
commit
f98374d6d2
24
.travis.yml
24
.travis.yml
|
@ -22,31 +22,38 @@ matrix:
|
|||
include:
|
||||
- os: linux
|
||||
node_js: "10"
|
||||
env: NO_WATCH_TESTS=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=basic
|
||||
env:
|
||||
NO_WATCH_TESTS=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=basic
|
||||
stage: basic
|
||||
- os: linux
|
||||
node_js: "10"
|
||||
env: NO_WATCH_TESTS=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=lint-unit
|
||||
env:
|
||||
NO_WATCH_TESTS=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=lint-unit
|
||||
stage: advanced
|
||||
- os: linux
|
||||
node_js: "10"
|
||||
env: NO_WATCH_TESTS=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=integration
|
||||
env:
|
||||
NO_WATCH_TESTS=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=integration
|
||||
stage: advanced
|
||||
- os: linux
|
||||
node_js: "10"
|
||||
env: NO_WATCH_TESTS=1 ALTERNATIVE_SORT=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=integration
|
||||
env:
|
||||
NO_WATCH_TESTS=1 ALTERNATIVE_SORT=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=integration
|
||||
stage: versions
|
||||
- os: osx
|
||||
node_js: "10"
|
||||
env: NO_WATCH_TESTS=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=integration
|
||||
env:
|
||||
NO_WATCH_TESTS=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=integration
|
||||
stage: versions
|
||||
- os: linux
|
||||
node_js: "8"
|
||||
env: NO_WATCH_TESTS=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=integration
|
||||
env:
|
||||
NO_WATCH_TESTS=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=integration
|
||||
stage: versions
|
||||
- os: linux
|
||||
node_js: "6"
|
||||
env: NO_WATCH_TESTS=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=integration
|
||||
env:
|
||||
NO_WATCH_TESTS=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=integration
|
||||
stage: versions
|
||||
fast_finish: true
|
||||
allow_failures:
|
||||
|
@ -66,4 +73,5 @@ after_success:
|
|||
|
||||
notifications:
|
||||
slack:
|
||||
secure: JduSdKWwbnLCwo7Z4E59SGE+Uw832UwnXzQiKEpg1BV45MYDPRiGltly1tRHmPh9OGjvGx3XSkC2tNGOBLtL4UL2SCkf012x0t7jDutKRfcv/njynl8jk8l+UhPmaWiHXDQAgGiiKdL4RfzPLW3HeVHCOWm0LKMzcarTa8tw+rE=
|
||||
secure:
|
||||
JduSdKWwbnLCwo7Z4E59SGE+Uw832UwnXzQiKEpg1BV45MYDPRiGltly1tRHmPh9OGjvGx3XSkC2tNGOBLtL4UL2SCkf012x0t7jDutKRfcv/njynl8jk8l+UhPmaWiHXDQAgGiiKdL4RfzPLW3HeVHCOWm0LKMzcarTa8tw+rE=
|
||||
|
|
|
@ -32,4 +32,5 @@ test_script:
|
|||
- cmd: yarn istanbul report --report lcovonly
|
||||
- cmd: yarn unlink webpack
|
||||
- cmd: yarn global add codecov && codecov -F %job_part% --disable=gcov
|
||||
- cmd: del /F /Q .jest-cache\\haste-map* .jest-cache\\perf-cache* 2> null || Ver > null
|
||||
- cmd:
|
||||
del /F /Q .jest-cache\\haste-map* .jest-cache\\perf-cache* 2> null || Ver > null
|
||||
|
|
|
@ -18,8 +18,8 @@ coverage:
|
|||
target: 0%
|
||||
patch:
|
||||
default: off
|
||||
integration:
|
||||
flags: integration
|
||||
basic:
|
||||
flags: basic
|
||||
target: 90%
|
||||
base: pr
|
||||
integration:
|
||||
|
|
137
open-bot.yaml
137
open-bot.yaml
|
@ -1,10 +1,9 @@
|
|||
bot: "webpack-bot"
|
||||
rules:
|
||||
|
||||
# Add ci-ok, ci-not-ok labels depending on travis status
|
||||
# comment to point the user to the results
|
||||
# comment in case of success
|
||||
- filters:
|
||||
# Add ci-ok, ci-not-ok labels depending on travis status
|
||||
# comment to point the user to the results
|
||||
# comment in case of success
|
||||
- filters:
|
||||
open: true
|
||||
pull_request:
|
||||
mergeable: true
|
||||
|
@ -26,7 +25,7 @@ rules:
|
|||
identifier: "ci-result"
|
||||
message: |-
|
||||
Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.
|
||||
- filters:
|
||||
- filters:
|
||||
open: true
|
||||
pull_request:
|
||||
mergeable: true
|
||||
|
@ -57,10 +56,8 @@ rules:
|
|||
id: report_ci
|
||||
value: yep
|
||||
|
||||
|
||||
|
||||
# Report specific error message if jest for basic tests fails
|
||||
- filters:
|
||||
# Report specific error message if jest for basic tests fails
|
||||
- filters:
|
||||
ensure:
|
||||
value: "{{report_ci}}"
|
||||
equals: yep
|
||||
|
@ -142,10 +139,8 @@ rules:
|
|||
id: report_ci
|
||||
value: nope
|
||||
|
||||
|
||||
|
||||
# Report specific error message if jest for integration tests fails
|
||||
- filters:
|
||||
# Report specific error message if jest for integration tests fails
|
||||
- filters:
|
||||
ensure:
|
||||
value: "{{report_ci}}"
|
||||
equals: yep
|
||||
|
@ -228,10 +223,8 @@ rules:
|
|||
id: report_ci
|
||||
value: nope
|
||||
|
||||
|
||||
|
||||
# Report specific error message if jest for unit tests or liniting fails
|
||||
- filters:
|
||||
# Report specific error message if jest for unit tests or liniting fails
|
||||
- filters:
|
||||
ensure:
|
||||
value: "{{report_ci}}"
|
||||
equals: yep
|
||||
|
@ -282,11 +275,8 @@ rules:
|
|||
id: report_ci
|
||||
value: nope
|
||||
|
||||
|
||||
|
||||
|
||||
# Report a general error message
|
||||
- filters:
|
||||
# Report a general error message
|
||||
- filters:
|
||||
ensure:
|
||||
value: "{{report_ci}}"
|
||||
equals: yep
|
||||
|
@ -303,13 +293,10 @@ rules:
|
|||
|
||||
Please take a look at the CI results from [travis]({{status_1.target_url}}) ({{status_1.state}}) and [appveyor]({{status_2.target_url}}) ({{status_2.state}}) and fix these issues.
|
||||
|
||||
|
||||
|
||||
|
||||
# Add tests-needed label depending on codecov status
|
||||
# comment to point the user writing test cases
|
||||
# comment in case of success
|
||||
- filters:
|
||||
# Add tests-needed label depending on codecov status
|
||||
# comment to point the user writing test cases
|
||||
# comment in case of success
|
||||
- filters:
|
||||
open: true
|
||||
pull_request:
|
||||
mergeable: true
|
||||
|
@ -326,7 +313,7 @@ rules:
|
|||
identifier: "tests-result"
|
||||
message: |-
|
||||
The minimum test ratio has been reached. Thanks!
|
||||
- filters:
|
||||
- filters:
|
||||
open: true
|
||||
pull_request:
|
||||
mergeable: true
|
||||
|
@ -338,7 +325,7 @@ rules:
|
|||
actions:
|
||||
label:
|
||||
add: "PR: tests-needed"
|
||||
- filters:
|
||||
- filters:
|
||||
open: true
|
||||
pull_request:
|
||||
mergeable: true
|
||||
|
@ -363,11 +350,9 @@ rules:
|
|||
|
||||
Read the [test readme](https://github.com/webpack/webpack/blob/master/test/README.md) for details how to write test cases.
|
||||
|
||||
|
||||
|
||||
# add conflict label to pull requests with conflict
|
||||
# on conflict all result labels are removed
|
||||
- filters:
|
||||
# add conflict label to pull requests with conflict
|
||||
# on conflict all result labels are removed
|
||||
- filters:
|
||||
open: true
|
||||
pull_request:
|
||||
mergeable: false
|
||||
|
@ -378,7 +363,7 @@ rules:
|
|||
- "PR: tests-needed"
|
||||
- "PR: CI-ok"
|
||||
- "PR: CI-not-ok"
|
||||
- filters:
|
||||
- filters:
|
||||
open: true
|
||||
pull_request:
|
||||
mergeable: true
|
||||
|
@ -386,12 +371,10 @@ rules:
|
|||
label:
|
||||
remove: "PR: conflict"
|
||||
|
||||
|
||||
|
||||
# add unreviewed, reviewed, review-outdated labels
|
||||
# comment to ping reviewer
|
||||
# comment on new PR
|
||||
- filters:
|
||||
# add unreviewed, reviewed, review-outdated labels
|
||||
# comment to ping reviewer
|
||||
# comment on new PR
|
||||
- filters:
|
||||
open: true
|
||||
in_order:
|
||||
commit: true
|
||||
|
@ -409,7 +392,7 @@ rules:
|
|||
- "PR: review-outdated"
|
||||
- "PR: unreviewed"
|
||||
- "PR: reviewed"
|
||||
- filters:
|
||||
- filters:
|
||||
open: true
|
||||
in_order:
|
||||
commit: true
|
||||
|
@ -427,7 +410,7 @@ rules:
|
|||
- "PR: review-outdated"
|
||||
- "PR: unreviewed"
|
||||
- "PR: reviewed"
|
||||
- filters:
|
||||
- filters:
|
||||
open: true
|
||||
in_order:
|
||||
review:
|
||||
|
@ -456,7 +439,7 @@ rules:
|
|||
I labeled the Pull Request so reviewers will review it again.
|
||||
|
||||
@{{review.user.login}} Please review the new changes.
|
||||
- filters:
|
||||
- filters:
|
||||
open: true
|
||||
commit: true
|
||||
not:
|
||||
|
@ -465,23 +448,21 @@ rules:
|
|||
actions:
|
||||
label: "PR: unreviewed"
|
||||
|
||||
|
||||
|
||||
# add non-master and next label to pull request to other branch
|
||||
- filters:
|
||||
# add non-master and next label to pull request to other branch
|
||||
- filters:
|
||||
pull_request:
|
||||
base_ref: "^master$"
|
||||
actions:
|
||||
label:
|
||||
remove: "PR: non-master"
|
||||
- filters:
|
||||
- filters:
|
||||
pull_request:
|
||||
base_ref: "^next$"
|
||||
actions:
|
||||
label:
|
||||
add: "PR: next"
|
||||
remove: "PR: non-master"
|
||||
- filters:
|
||||
- filters:
|
||||
pull_request:
|
||||
base_ref: "^(?!master$)(?!next$)"
|
||||
actions:
|
||||
|
@ -489,10 +470,8 @@ rules:
|
|||
add: "PR: non-master"
|
||||
remove: "PR: next"
|
||||
|
||||
|
||||
|
||||
# add non-master label to pull request to other branch
|
||||
- filters:
|
||||
# add non-master label to pull request to other branch
|
||||
- filters:
|
||||
open: true
|
||||
age:
|
||||
minimum: 1d
|
||||
|
@ -513,10 +492,8 @@ rules:
|
|||
|
||||
*You don't have to change it for this PR, just make sure to follow this hint the next time you submit a PR.*
|
||||
|
||||
|
||||
|
||||
# add "Send a PR" label when somebody with write permission say it
|
||||
- filters:
|
||||
# add "Send a PR" label when somebody with write permission say it
|
||||
- filters:
|
||||
open: true
|
||||
comment: "[Ss]end a [Pp][Rr]"
|
||||
permission:
|
||||
|
@ -524,12 +501,11 @@ rules:
|
|||
actions:
|
||||
label: "Send a PR"
|
||||
|
||||
|
||||
|
||||
# Move issue task
|
||||
- filters:
|
||||
# Move issue task
|
||||
- filters:
|
||||
open: true
|
||||
comment: "\\s*@webpack-bot\\s+move\\s+(?:to\\s+)?([a-z0-9_\\-\\.]+/[a-z0-9_\\-\\.]+)\\s*([\\s\\S]*)$"
|
||||
comment:
|
||||
"\\s*@webpack-bot\\s+move\\s+(?:to\\s+)?([a-z0-9_\\-\\.]+/[a-z0-9_\\-\\.]+)\\s*([\\s\\S]*)$"
|
||||
not:
|
||||
comment_1:
|
||||
matching: "moved\\-by\\-bot"
|
||||
|
@ -553,11 +529,9 @@ rules:
|
|||
I've moved it to {{comment_match.[1]}}.
|
||||
close: true
|
||||
|
||||
|
||||
|
||||
# mark inactive issues with inactive label
|
||||
# close them when no activity after warning
|
||||
- filters:
|
||||
# mark inactive issues with inactive label
|
||||
# close them when no activity after warning
|
||||
- filters:
|
||||
issue: true
|
||||
open: true
|
||||
not:
|
||||
|
@ -574,7 +548,7 @@ rules:
|
|||
|
||||
It's subject to automatic issue closing if there is no activity in the next 15 days.
|
||||
label: inactive
|
||||
- filters:
|
||||
- filters:
|
||||
open: true
|
||||
label: inactive
|
||||
last_action_age:
|
||||
|
@ -583,7 +557,7 @@ rules:
|
|||
label:
|
||||
remove:
|
||||
- inactive
|
||||
- filters:
|
||||
- filters:
|
||||
open: true
|
||||
label: inactive
|
||||
last_action_age:
|
||||
|
@ -598,9 +572,8 @@ rules:
|
|||
|
||||
If you think this is still a valid issue, please file a new issue with additional information.
|
||||
|
||||
|
||||
# Add action actions box to each pull request
|
||||
- filters:
|
||||
# Add action actions box to each pull request
|
||||
- filters:
|
||||
pull_request: true
|
||||
open: true
|
||||
not:
|
||||
|
@ -615,9 +588,8 @@ rules:
|
|||
|
||||
* [ ] <!-- document --> This need to be documented (issue in webpack/webpack.js.org will be filed when merged)
|
||||
|
||||
|
||||
# When a pull request need to be documented, create an issue in webpack/webpack.js.org when merged
|
||||
- filters:
|
||||
# When a pull request need to be documented, create an issue in webpack/webpack.js.org when merged
|
||||
- filters:
|
||||
pull_request:
|
||||
merged: true
|
||||
comment:
|
||||
|
@ -646,11 +618,8 @@ rules:
|
|||
message: |-
|
||||
I've created an issue to document this in webpack/webpack.js.org.
|
||||
|
||||
|
||||
|
||||
|
||||
# Check open issues and pull requests every day
|
||||
- filters:
|
||||
# Check open issues and pull requests every day
|
||||
- filters:
|
||||
open: true
|
||||
actions:
|
||||
schedule: 1d
|
||||
|
|
|
@ -125,7 +125,7 @@
|
|||
"special-lint": "node tooling/inherit-types && node tooling/format-schemas && node tooling/compile-to-definitions",
|
||||
"special-lint-fix": "node tooling/inherit-types --write --override && node tooling/format-schemas --write && node tooling/compile-to-definitions --write",
|
||||
"fix": "yarn code-lint --fix && yarn special-lint-fix",
|
||||
"pretty": "prettier --loglevel warn --write \"*.{ts,js,json}\" \"{setup,lib,bin,hot,buildin,benchmark,tooling,schemas}/**/*.{js,json}\" \"test/*.js\" \"test/{configCases,watchCases,statsCases,hotCases}/**/webpack.config.js\" \"examples/**/webpack.config.js\"",
|
||||
"pretty": "prettier --loglevel warn --write \"*.{ts,js,json,yml,yaml}\" \"{setup,lib,bin,hot,buildin,benchmark,tooling,schemas}/**/*.{js,json}\" \"test/*.js\" \"test/{configCases,watchCases,statsCases,hotCases}/**/webpack.config.js\" \"examples/**/webpack.config.js\"",
|
||||
"schema-lint": "node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.lint.js\" --no-verbose",
|
||||
"benchmark": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.benchmark.js\" --runInBand",
|
||||
"cover": "yarn cover:init && yarn cover:all && yarn cover:report",
|
||||
|
|
Loading…
Reference in New Issue