|
18 | 18 | "_check:markdown": "npx gulp lint-md", |
19 | 19 | "_check:registry": "npx gulp validate-registry", |
20 | 20 | "_check:text": "npx textlint content data `ls *.md`", |
| 21 | + "_code-excerpter-over-en": "code-excerpter content/en", |
21 | 22 | "_commit:public": "HASH=$(git rev-parse --short main); cd public && git add -A && git commit -m \"Site at $HASH\"", |
22 | 23 | "_diff:check": "git diff --name-only --exit-code", |
23 | 24 | "_diff:fail": "git diff --name-only --exit-code || exit 1", |
|
62 | 63 | "build": "npm run _build --", |
63 | 64 | "cd:public": "cd public &&", |
64 | 65 | "check:all": "npm run seq -- $(npm run -s _list:check:*)", |
| 66 | + "check:code-excerpts": "npm run _code-excerpter-over-en -- --dry-run --fail-on-update", |
65 | 67 | "check:collector-sync:lint": "cd scripts/collector-sync && uv run ruff check src/", |
66 | 68 | "check:collector-sync:types": "cd scripts/collector-sync && uv run mypy src/", |
67 | 69 | "check:collector-sync": "cd scripts/collector-sync && uv run pytest", |
|
78 | 80 | "check:text": "npm run _check:text -- ", |
79 | 81 | "check": "CMD_SKIP=collector-sync npm run check:all", |
80 | 82 | "clean": "make clean", |
81 | | - "code-excerpts:get": "cd tools && dart run build_runner build --delete-conflicting-outputs --output ../tmp/excerpts", |
82 | | - "code-excerpts:update-docs": "cd tools && dart run code_excerpt_updater --fragment-dir-path ../tmp/excerpts --src-dir-path examples --yaml --write-in-place content", |
83 | | - "code-excerpts": "rm -Rf tmp/excerpts/* && npm run seq -- code-excerpts:get code-excerpts:update-docs", |
| 83 | + "code-excerpts": "node -e 'console.error(\"\\x1b[31mWARNING: THIS IS A DEPRECATED ALIAS, instead use: `fix:code-excerpts` or `check:code-excerpts`\\x1b[0m\")' && npm run fix:code-excerpts --", |
84 | 84 | "cp:spec": "scripts/content-modules/cp-pages.sh", |
85 | 85 | "diff:check": "npm run _diff:check || (echo; echo 'WARNING: the files above have not been committed'; echo)", |
86 | 86 | "diff:fail": "npm run _diff:check || (echo; echo 'ERROR: the files above have changed. Locally rerun `npm run test-and-fix` and commit changes'; echo; exit 1)", |
87 | 87 | "fix:all": "npm run all -- $(npm -s run _list:fix:*)", |
| 88 | + "fix:code-excerpts": "npm run _code-excerpter-over-en", |
88 | 89 | "fix:collector-sync:lint": "cd scripts/collector-sync && uv run ruff check --fix src/", |
89 | 90 | "fix:dict": "scripts/sort-cspell-words.pl .cspell/*.txt && npm run _fix:dict", |
90 | 91 | "fix:expired": "npm run -s check:expired -- -q | xargs -r -I {} sh -c 'echo \"Deleting expired file: {}\" && rm {}'", |
|
135 | 136 | "test:all": "npm run test:base && npm run test:compound-tests", |
136 | 137 | "test:base": "npm run check", |
137 | 138 | "test:collector-sync": "npm run check:collector-sync && npm run check:collector-sync:types && npm run check:collector-sync:lint", |
138 | | - "test:compound-tests": "npm run seq -- $(CMD_SKIP=collector-sync npm -s run _list:test:compound-tests)", |
| 139 | + "test:compound-tests": "npm run seq -- check:code-excerpts $(CMD_SKIP=collector-sync npm -s run _list:test:compound-tests)", |
139 | 140 | "test:edge-functions:live": "npm run _test:ef:live --", |
140 | 141 | "test:edge-functions": "node --test \"netlify/edge-functions/**/*.test.ts\"", |
141 | 142 | "test:redirects:live": "npm run _test:redirects:live --", |
|
156 | 157 | "ajv-errors": "^3.0.0", |
157 | 158 | "ajv-formats": "^3.0.1", |
158 | 159 | "autoprefixer": "^10.4.27", |
| 160 | + "code-excerpter": "^0.1.0", |
159 | 161 | "cspell": "^10.0.0", |
160 | 162 | "gulp": "^5.0.1", |
161 | 163 | "hugo-extended": "0.157.0", |
|
0 commit comments