Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
131 lines (131 loc) · 8.64 KB
/
Copy pathpackage.json
File metadata and controls
131 lines (131 loc) · 8.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"name": "@hagicode/docs",
"version": "0.0.1",
"private": true,
"type": "module",
"description": "HagiCode documentation site - built with Astro and Starlight",
"scripts": {
"dev": "pnpm run prepare:docs-runtime && astro dev --host 0.0.0.0 --port ${PORT_DOCS:-31265}",
"start": "pnpm run prepare:docs-runtime && astro dev --host 0.0.0.0",
"build": "export NODE_OPTIONS=\"${NODE_OPTIONS:-} --max-old-space-size=8192\"; export NODE_ENV=\"${NODE_ENV:-production}\"; pnpm run prepare:docs-runtime && pnpm run sync:tips-snapshot && pnpm run verify:release-notes:input && astro build && pnpm run verify:release-notes:output && pnpm run report:build-output",
"build:ci": "pnpm run build && pnpm run verify:blog-sidebar-i18n && pnpm run verify:hagilight-build",
"i18n:audit": "hagi18n audit --config hagi18n.yaml",
"i18n:report": "hagi18n report --config hagi18n.yaml",
"i18n:doctor": "hagi18n doctor --config hagi18n.yaml",
"i18n:sync": "hagi18n sync --config hagi18n.yaml --from en-US --to zh-CN --dry-run",
"i18n:sync:write": "hagi18n sync --config hagi18n.yaml --from en-US --to zh-CN --write",
"i18n:prune": "hagi18n prune --config hagi18n.yaml --from en-US --to zh-CN --dry-run",
"i18n:prune:write": "hagi18n prune --config hagi18n.yaml --from en-US --to zh-CN --write",
"i18n:generate": "node ./scripts/generate-i18n-resources.mjs",
"prepare:i18n": "pnpm run i18n:generate",
"prepare:docs-content": "node ./scripts/materialize-docs-content-tree.mjs",
"prepare:docs-runtime": "pnpm run prepare:i18n && pnpm run prepare:docs-content",
"i18n:check": "pnpm run i18n:audit && pnpm run i18n:generate --check && pnpm run i18n:doctor",
"sync:tips-snapshot": "node ./scripts/fetch-tips-snapshot.mjs",
"indexnow:submit": "node ./scripts/submit-indexnow.mjs",
"indexnow:dry-run": "node ./scripts/submit-indexnow.mjs --dry-run",
"release-notes:fetch": "node ./scripts/fetch-release-notes.mjs",
"release-notes:materialize": "node ./scripts/materialize-release-notes.mjs",
"release-notes:sync": "node ./scripts/sync-release-notes.mjs",
"report:build-output": "node ./scripts/report-build-output-stats.mjs",
"verify:release-notes:input": "node ./scripts/verify-release-notes-build-input.mjs",
"verify:release-notes:output": "node ./scripts/verify-release-notes-build-output.mjs",
"verify:docs-entry-language": "node ./scripts/verify-docs-entry-language.mjs",
"build:verify-docs-entry-language": "pnpm run build && pnpm run verify:docs-entry-language",
"verify:traffic-entry-contract": "node ./scripts/verify-traffic-entry-contract.mjs",
"verify:blog-content-headings": "node ./scripts/verify-blog-content-headings.mjs",
"verify:blog-heading-structure": "node ./scripts/verify-blog-heading-structure.mjs",
"verify:blog-tag-archives": "node ./scripts/verify-blog-tag-archives.mjs",
"sync:blog-seo-descriptions": "node ./scripts/sync-blog-seo-descriptions.mjs --dry-run",
"sync:blog-seo-descriptions:write": "node ./scripts/sync-blog-seo-descriptions.mjs --write",
"verify:blog-seo": "node ./scripts/verify-blog-seo-descriptions.mjs",
"verify:desktop-version-guidance": "node ./scripts/verify-desktop-version-guidance.mjs",
"verify:docs-image-references": "node ./scripts/verify-docs-image-references.mjs",
"test:docs-image-references": "node --test ./tests/docs-image-references.test.mjs",
"import:r2-images": "node ./scripts/import-r2-images.mjs",
"test:r2-images": "node --test ./tests/r2-images.test.mjs",
"test:r2-random-image": "vitest run src/scripts/r2-random-image.test.ts",
"screenshots:scan-metadata": "node ./scripts/screenshot-metadata-scanner.mjs",
"screenshots:sync": "node ./scripts/screenshot-metadata-manager.mjs",
"test:screenshot-metadata": "node --test ./tests/screenshot-metadata-manager.test.mjs ./tests/screenshot-metadata-scanner.test.mjs ./tests/wizard-setup-screenshot-references.test.mjs",
"test:blog-heading-validation": "node --test ./tests/blog-heading-validation.test.mjs",
"test:blog-seo-description": "node --test ./tests/blog-seo-description.test.mjs",
"test:docs-seo-metadata": "node --test ./tests/docs-seo-metadata.test.mjs",
"test:traffic-entry-route": "node --test ./tests/traffic-entry-route.test.mjs",
"test:desktop-version-guidance": "node --test ./tests/desktop-version-guidance.test.mjs",
"test:docs-translation-report": "node --test ./tests/docs-translation-report.test.mjs",
"test:indexnow": "node --test ./tests/submit-indexnow.test.mjs",
"test:structured-articles": "node --test ./tests/structured-articles.test.mjs",
"test:tips-snapshot": "node --test ./tests/tips-snapshot.test.mjs",
"test:warm-deployment-domains": "node --test ./tests/warm-deployment-domains.test.mjs",
"verify:blog-sidebar-i18n": "node ./scripts/verify-blog-sidebar-i18n.mjs",
"verify:hagilight-build": "node --test ./tests/hagilight-built-pages.test.mjs ./tests/ga-event-tags.test.mjs ./tests/docs-image-avif-output.test.mjs",
"verify:blog-i18n-completeness": "node ./scripts/verify-blog-i18n-completeness.mjs",
"report:translation": "node ./scripts/report-translation-status.mjs",
"translate:missing:pi": "node ./scripts/translate-missing-content-with-pi.mjs",
"translate:missing:claude": "node ./scripts/translate-missing-content-with-claude.mjs --model claude-haiku-5-5",
"report:blog-translation": "node ./scripts/report-blog-translation-status.mjs",
"report:docs-translation": "node ./scripts/report-docs-translation-status.mjs",
"verify:docs-translation": "node ./scripts/report-docs-translation-status.mjs --fail-on-findings",
"verify:blog-i18n": "node ./scripts/verify-blog-i18n-build.mjs",
"verify:blog-translation-quality": "node ./scripts/verify-blog-translation-quality.mjs",
"verify:blog-translation-quality:ci": "node ./scripts/verify-blog-translation-quality.mjs --fail-on-findings",
"test:blog-translation-quality": "node --test ./tests/blog-translation-quality.test.mjs",
"test:pi-translation-script": "node --test ./tests/pi-translation-script.test.mjs",
"test:claude-translation-script": "node --test ./tests/claude-translation-script.test.mjs",
"test:translation-report": "node --test ./tests/docs-translation-report.test.mjs ./tests/blog-translation-report.test.mjs ./tests/translation-report.test.mjs",
"verify:blog": "pnpm run verify:blog-content-headings && pnpm run verify:blog-sidebar-i18n && pnpm run verify:blog-heading-structure && pnpm run verify:blog-tag-archives && pnpm run verify:blog-seo && pnpm run verify:blog-i18n-completeness",
"build:verify-blog": "pnpm run build && pnpm run verify:blog",
"build:verify-blog-i18n": "pnpm run build && pnpm run verify:blog-i18n",
"preview": "astro preview --port ${PORT_DOCS:-31265}",
"astro": "astro",
"typecheck": "export NODE_OPTIONS=\"${NODE_OPTIONS:-} --max-old-space-size=8192\"; pnpm run prepare:docs-runtime && tsc --noEmit",
"test:link-check-cache": "node --test ./tests/link-check-result-cache.test.mjs",
"test:release-notes": "node --test ./tests/release-notes-sync.test.mjs ./tests/release-notes-pages.test.mjs ./tests/release-notes-build-output.test.mjs ./tests/release-notes-routing.test.mjs ./tests/sidebar-order.test.mjs",
"test:runtime-version-index": "pnpm run prepare:docs-runtime && vitest run",
"test:fast": "pnpm run typecheck",
"check:registry": "node scripts/check-registry-neutrality.mjs",
"test:registry": "node --test scripts/check-registry-neutrality.node-test.mjs"
},
"dependencies": {
"@astrojs/markdown-remark": "^7.3.0",
"@astrojs/mdx": "^8.0.2",
"@astrojs/partytown": "^2.1.8",
"@astrojs/react": "^6.0.6",
"@astrojs/sitemap": "^3.7.4",
"@astrojs/starlight": "^0.42.4",
"@hagicode/hagilight": "0.23.0",
"@hagicode/hagilight-core": "0.23.0",
"@hagicode/hagilight-starlight": "0.23.0",
"@types/react": "^19.2.13",
"@types/react-dom": "^19.2.3",
"astro": "^7.3.8",
"astro-seo": "^1.1.0",
"esbuild": "^0.27.7",
"github-slugger": "^2.0.0",
"hast-util-select": "^6.0.4",
"js-yaml": "^4.3.1",
"picocolors": "^1.1.1",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"rehype": "^13.0.2",
"rehype-external-links": "^3.0.0",
"rehype-raw": "^3.0.0",
"semver": "^7.7.4",
"sharp": "^0.34.2",
"starlight-blog": "^0.30.0",
"unist-util-visit": "^5.1.0",
"vfile": "^6.0.3",
"yet-another-react-lightbox": "^3.29.1"
},
"devDependencies": {
"@hagicode/hagi18n": "^0.3.1",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.0",
"@types/hast": "^3.0.5",
"jsdom": "^27.2.0",
"typescript": "^6.0.3",
"vitest": "^5.0.5"
},
"packageManager": "pnpm@12.16.1"
}