|
1 | 1 | {
|
2 |
| - "spelling": "cSpell:ignore docsy elemetry HTMLTEST hugo loglevel netlify prebuild precheck preinstall postbuild postget refcache textlint -", |
| 2 | + "spelling": "cSpell:ignore docsy elemetry HTMLTEST hugo loglevel netlify nowrap prebuild precheck preinstall postbuild postget refcache textlint -", |
3 | 3 | "Notes": [
|
4 | 4 | "The 'all' runs _all_ named scripts in sequence, even if one fails; and exits with failure in that case."
|
5 | 5 | ],
|
6 | 6 | "scripts": {
|
7 | 7 | "__check:links": "make --keep-going check-links",
|
8 | 8 | "_build": "npm run _hugo -- -e dev --buildDrafts --baseURL \"${DEPLOY_PRIME_URL:-http://localhost}\"",
|
9 | 9 | "_check:format:any": "npx prettier --check --ignore-path ''",
|
| 10 | + "_check:format:ja+zh": "npm run _check:format:nowrap -- content/ja content/zh", |
| 11 | + "_check:format:nowrap": "npm run _check:format:any -- --prose-wrap preserve", |
10 | 12 | "_check:format": "npx prettier --check .",
|
11 | 13 | "_check:links--md": "npx markdown-link-check --config .markdown-link-check.json *.md",
|
12 | 14 | "_check:links--warn": "npm run _check:links || (echo; echo 'WARNING: see link-checker output for issues.'; echo)",
|
|
38 | 40 | "build": "npm run _build",
|
39 | 41 | "cd:public": "cd public &&",
|
40 | 42 | "check:filenames": "test -z \"$(npm run -s _ls-bad-filenames)\" || npm run -s _filename-error",
|
41 |
| - "check:format": "npm run _check:format || (echo '[help] Run: npm run fix:format'; exit 1)", |
| 43 | + "check:format": "npm run _check:format && npm run _check:format:ja+zh || (echo '[help] Run: npm run fix:format'; exit 1)", |
42 | 44 | "check:links:internal": "npm run _check:links:internal",
|
43 | 45 | "check:links": "npm run _check:links",
|
44 | 46 | "check:markdown": "scripts/check-markdown-wrapper.sh",
|
|
62 | 64 | "fix:submodules": "npm run _sync",
|
63 | 65 | "fix:text": "npm run check:text -- --fix",
|
64 | 66 | "fix": "npm run fix:all",
|
65 |
| - "format": "npm run _check:format -- --write", |
| 67 | + "format": "npm run _check:format -- --write && npm run _check:format:ja+zh -- --write", |
66 | 68 | "get:submodule": "npm run _get:${GET:-submodule}",
|
67 | 69 | "install:netlify-cli": "npm list netlify-cli || npm install netlify-cli",
|
68 | 70 | "log:check:links": "npm run check:links | tee tmp/build-log.txt",
|
|
0 commit comments