|
21 | 21 | "_diff:fail": "git diff --name-only --exit-code || exit 1", |
22 | 22 | "_fail": "exit 1", |
23 | 23 | "_filename-error": "echo 'ERROR: the following files violate naming conventions; fix using: `npm run fix:filenames`'; echo; npm run -s _ls-bad-filenames; exit 1", |
24 | | - "_fix:most": "npm run seq -- $(npm -s run _list:fix:* | grep -Ev \"${FIX_MOST_SKIP:-refcache|submodule}\")", |
25 | 24 | "_get:no": "echo SKIPPING get operation", |
26 | 25 | "_get:submodule": "set -x && git submodule update --init ${DEPTH:- --depth 999}", |
27 | 26 | "_hugo": "hugo --cleanDestinationDir", |
28 | 27 | "_install:dict": "npm install -D $(npm run -s _list:dict)", |
29 | 28 | "_install:netlify-cli": "npm list netlify-cli || npm install -O netlify-cli", |
30 | 29 | "_list:check:*": "npm run --loglevel=warn | grep -Ee '^\\s*check:[^:]+$'", |
| 30 | + "_list:check:for-test-and-fix": "npm -s run _list:check:* | grep -Ev \"${CMD_SKIP:-noop}\"", |
31 | 31 | "_list:dict": "grep '^\\s*\"@cspell' package.json | awk -F: '{print $1}' | tr -d '\"'", |
32 | 32 | "_list:fix:*": "npm run --loglevel=warn | grep -Ee '^\\s*fix:[^:]+$' | grep -v 'fix:all'", |
| 33 | + "_list:fix:for-test-and-fix": "npm -s run _list:fix:* | grep -Ev \"refcache|submodule|${CMD_SKIP:-noop}\"", |
33 | 34 | "_ls-bad-filenames": "find assets content static -name '*_*' ! -name '[_.]*'", |
34 | 35 | "_pin:submodule": "scripts/pin-submodules.pl", |
35 | 36 | "_prebuild": "npm run seq -- get:submodule cp:spec", |
|
97 | 98 | "serve:hugo": "npm run _serve:hugo -- --renderToMemory", |
98 | 99 | "serve:netlify": "npm run _serve:netlify", |
99 | 100 | "serve": "npm run serve:hugo --", |
100 | | - "test-and-fix": "npm run seq -- fix:submodule _fix:most test", |
| 101 | + "test-and-fix": "npm run seq -- fix:submodule $(npm -s run _list:fix:for-test-and-fix) $(npm -s run _list:check:for-test-and-fix)", |
101 | 102 | "test": "npm run check", |
102 | 103 | "update:htmltest-config": "scripts/htmltest-config.sh", |
103 | 104 | "update:pkg:hugo": "npm install --save-dev --save-exact hugo-extended@latest", |
|
0 commit comments