docs/dacli/v0.11-mirror-refactor.md Phase 2 删除清单: - data/field-schemas.json ← v0.10 之前 commit 已删 - data/component-map.json ← v0.10 之前 commit 已删 - data/l2-rules.json ← v0.10 之前 commit 已删 - data/validation-rules.json ← v0.10 之前 commit 已删 - scripts/extract-web-schema.py ← v0.10 之前 commit 已删 - scripts/extract-all.mjs ← 本次删 (350 行 snapshot 提取脚本) scripts/extract-all.mjs 用途: 从 web/.../componentMap.ts/formValidate.ts/R*.vue 正则提取到 dacli/data/*.json, 然后 FieldBuilder.ts read 这些 JSON. v0.11+ 后: - dacli/src/commands/form/_buildformdata.ts 直接 import web buildFormData - dacli/data/buildformdata-contract.md 留文档 - 不再需要 snapshot 中间产物, 也不再需要 extract 脚本 package.json: 移除 'extract' script (tsx scripts/extract-all.mjs) Co-Authored-By: Claude <[email protected]>
41 lines
1003 B
JSON
41 lines
1003 B
JSON
{
|
|
"name": "dacli-ts",
|
|
"version": "0.1.0",
|
|
"description": "TypeScript-based dacli CLI for JNPF platform — 0 差错 baseline replication.",
|
|
"type": "module",
|
|
"private": true,
|
|
"bin": {
|
|
"dacli": "src/cli.ts"
|
|
},
|
|
"scripts": {
|
|
"dacli": "tsx src/cli.ts",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:e2e": "playwright test",
|
|
"verify:baseline": "bash .claude/skills/dacli-ts/examples/baseline/all.sh",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@vue/compiler-sfc": "^3.5.0",
|
|
"better-sqlite3": "^11.10.0",
|
|
"commander": "^12.1.0",
|
|
"crypto-js": "^4.2.0",
|
|
"mysql2": "^3.22.5",
|
|
"vue": "^3.5.0",
|
|
"yaml": "^2.9.0"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.48.0",
|
|
"@types/better-sqlite3": "^7.6.11",
|
|
"@types/crypto-js": "^4.2.2",
|
|
"@types/node": "^22.0.0",
|
|
"pixelmatch": "^6.0.0",
|
|
"tsx": "^4.19.0",
|
|
"typescript": "^5.6.0",
|
|
"vitest": "^2.1.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
}
|
|
}
|