|
3 | 3 | "version": "0.0.0", |
4 | 4 | "description": "Resources provided by the CNCF Technical Documentation team.", |
5 | 5 | "scripts": { |
6 | | - "_build": "docusaurus build", |
| 6 | + "_build": "npm run docus:build", |
7 | 7 | "_check:format:any": "npx prettier --check --ignore-path ''", |
8 | 8 | "_check:format:delta": "npm run _check:format:any -- $(npm run -s _list:git:delta)", |
9 | 9 | "_check:format": "npx prettier --check .", |
10 | 10 | "_check:links-md": "bash -c 'for f in *.md `find analyses -name \"*.md\"`; do npx markdown-link-check --config .markdown-link-check.json -p -v $f || exit 1; done'", |
11 | 11 | "_check:links:internal": "npm run _check:links -- HTMLTEST_ARGS='--skip-external'", |
12 | 12 | "_check:links": "make --keep-going check-links", |
| 13 | + "_check:markdown:1": "npx -p markdownlint-cli markdownlint -c .markdownlint.yaml", |
13 | 14 | "_check:markdown:all": "npm run -s _list:check:md | xargs -I {} -P 4 npx -p markdownlint-cli markdownlint -c .markdownlint.yaml {}", |
14 | 15 | "_check:markdown:delta": "npm run -s _list:git:delta | xargs -I {} npx -p markdownlint-cli markdownlint -c .markdownlint.yaml {}", |
15 | | - "_check:markdown:1": "npx -p markdownlint-cli markdownlint -c .markdownlint.yaml", |
16 | | - "_list:git:delta": "git diff --name-only --diff-filter=ACMR | grep -E '\\.(js|md|scss|yml|yaml)$'", |
| 16 | + "_list:check:*": "npm run --loglevel=warn | grep -Ee '^\\s*check:[^:]+$'", |
17 | 17 | "_list:check:md:no-analysis": "find . -name '*.md' -not -path '*/node_modules/*' -a -not -path '*/.?*' -a -not -path '*/00*'", |
18 | 18 | "_list:check:md": "find . -name '*.md' -not -path '*/node_modules/*' -a -not -path '*/.?*' | grep -Eve '/000|/0010'", |
19 | | - "_list:check:*": "npm run --loglevel=warn | grep -Ee '^\\s*check:[^:]+$'", |
20 | 19 | "_list:fix:*": "npm run --loglevel=warn | grep -Ee '^\\s*fix:[^:]+$' | grep -v 'fix:all'", |
| 20 | + "_list:git:delta": "git diff --name-only --diff-filter=ACMR | grep -E '\\.(js|md|scss|yml|yaml)$'", |
| 21 | + "build:preview": "npm run _build", |
| 22 | + "build:production": "npm run _build", |
| 23 | + "build": "BUILD_ENV=dev npm run _build", |
21 | 24 | "check:format": "npm run _check:format || (echo '[help] Run: npm run fix:format'; exit 1)", |
22 | 25 | "check:links": "npm run _check:links", |
23 | 26 | "check:markdown": "npm run _check:markdown:all", |
24 | 27 | "check:spelling": "npx cspell --no-progress -c .cspell.yml analyses docs *.md", |
25 | 28 | "check": "npm run seq -- $(npm run -s _list:check:*)", |
| 29 | + "docus:build": "docusaurus build", |
| 30 | + "docus:clear": "docusaurus clear", |
| 31 | + "docus:deploy": "docusaurus deploy", |
| 32 | + "docus:serve": "docusaurus serve", |
| 33 | + "docus:start": "docusaurus start", |
| 34 | + "docus:swizzle": "docusaurus swizzle", |
| 35 | + "docus:write-heading-ids": "docusaurus write-heading-ids", |
| 36 | + "docus:write-translations": "docusaurus write-translations", |
| 37 | + "docusaurus": "docusaurus", |
26 | 38 | "fix:format": "npm run _check:format -- --write", |
27 | 39 | "fix": "npm run seq -- $(npm -s run _list:fix:*)", |
28 | 40 | "precheck:links": "npm run build", |
29 | 41 | "seq": "bash -c 'for cmd in \"$@\"; do npm run $cmd || exit 1; done' - ", |
| 42 | + "serve": "npm run docus:serve", |
30 | 43 | "test": "npm run check", |
31 | | - "update:pkgs": "npx npm-check-updates -u", |
32 | | - "docusaurus": "docusaurus", |
33 | | - "start": "docusaurus start", |
34 | | - "build:preview": "npm run _build", |
35 | | - "build:production": "npm run _build", |
36 | | - "build": "BUILD_ENV=dev npm run _build", |
37 | | - "swizzle": "docusaurus swizzle", |
38 | | - "deploy": "docusaurus deploy", |
39 | | - "clear": "docusaurus clear", |
40 | | - "serve": "docusaurus serve", |
41 | | - "write-translations": "docusaurus write-translations", |
42 | | - "write-heading-ids": "docusaurus write-heading-ids", |
43 | | - "typecheck": "tsc" |
| 44 | + "typecheck": "tsc", |
| 45 | + "update:pkgs": "npx npm-check-updates -u" |
44 | 46 | }, |
45 | 47 | "author": "CNCF", |
46 | 48 | "license": "CC-BY-4.0", |
|
50 | 52 | "@mdx-js/react": "^3.1.0", |
51 | 53 | "clsx": "^2.1.1", |
52 | 54 | "prism-react-renderer": "^2.4.1", |
53 | | - "react": "^19.1.0", |
54 | | - "react-dom": "^19.1.0" |
| 55 | + "react-dom": "^19.1.0", |
| 56 | + "react": "^19.1.0" |
55 | 57 | }, |
56 | 58 | "devDependencies": { |
| 59 | + "@docusaurus/module-type-aliases": "3.8.1", |
| 60 | + "@docusaurus/tsconfig": "3.8.1", |
| 61 | + "@docusaurus/types": "3.8.1", |
57 | 62 | "cspell": "^9.1.1", |
58 | 63 | "markdown-link-check": "3.13.7", |
59 | | - "markdownlint": "^0.38.0", |
60 | 64 | "markdownlint-cli": "^0.45.0", |
| 65 | + "markdownlint": "^0.38.0", |
61 | 66 | "npm-check-updates": "^18.0.1", |
62 | 67 | "prettier": "^3.5.3", |
63 | | - "@docusaurus/module-type-aliases": "3.8.1", |
64 | | - "@docusaurus/tsconfig": "3.8.1", |
65 | | - "@docusaurus/types": "3.8.1", |
66 | 68 | "typescript": "~5.8.3" |
67 | 69 | }, |
68 | 70 | "private": true, |
69 | | - "spelling": "cSpell:ignore ACMR HTMLTEST loglevel pkgs -", |
| 71 | + "spelling": "cSpell:ignore ACMR docus HTMLTEST loglevel pkgs -", |
70 | 72 | "prettier": { |
71 | 73 | "proseWrap": "always", |
72 | 74 | "singleQuote": true |
|
0 commit comments