chore: 一键检查、发布脚本与开发环境约定
- deno task test:all(scripts/test-all.sh):逐包跑完再汇总,连不上测试库直接失败, web 用 Node 跑 vitest;deno task ci 改用它 - deno task release(scripts/release.sh):工作区不干净、CHANGELOG 无本版条目即拒绝; 打 tag、构建、只替换 app、核对健康接口版本 - deno task dev:up:起开发库并迁移到最新;开发 API 端口改 4390(4380 留给本机部署版) - CLAUDE.md:命令、提交与发布约定、文档放哪 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
ceb66f8c77
commit
11ca2f01ff
200 files changed
+191
-23061
No files matched your search
@@ -67,6 +67,10 @@
|
||||
"dev:server": "cd apps/server && deno task dev",
|
||||
"dev:web": "cd apps/web && deno task dev",
|
||||
"db:up": "docker compose -f docker-compose.dev.yml up -d --wait",
|
||||
"dev:up": {
|
||||
"description": "开发环境就绪:起开发库(55433)并迁移到最新;之后 deno task dev(API 4390、web 5180)",
|
||||
"command": "deno task db:up && deno task db:migrate"
|
||||
},
|
||||
"db:migrate": "deno run -A --env-file=.env packages/db/scripts/migrate.ts latest",
|
||||
"db:reset": "deno run -A --env-file=.env packages/db/scripts/migrate.ts reset",
|
||||
"gen:types": "deno run -A --env-file=.env packages/db/scripts/gen-types.ts",
|
||||
@@ -77,6 +81,10 @@
|
||||
"lint": "deno run -A npm:@biomejs/biome check .",
|
||||
"fmt": "deno run -A npm:@biomejs/biome check --write .",
|
||||
"test": "deno task --members -j 1 test",
|
||||
"test:all": {
|
||||
"description": "全量测试:逐包跑完再汇总(不在首个失败处停),连不上测试库直接失败;web 用 Node 跑",
|
||||
"command": "bash scripts/test-all.sh"
|
||||
},
|
||||
"test:web:smoke": {
|
||||
"description": "前端全页面冒烟(Playwright):需要已启动的后端 + web 与已初始化的管理员,见 README",
|
||||
"command": "deno run -A apps/web/scripts/smoke.mjs"
|
||||
@@ -91,7 +99,11 @@
|
||||
"description": "编译产物自检:空环境跑 dist/umt-server --role preflight,确认完整模块图可加载(防 deno compile 漏嵌 npm 模块)",
|
||||
"command": "sh scripts/check-compiled-binary.sh"
|
||||
},
|
||||
"ci": "deno task typecheck && deno task lint && deno task test && deno task check:tokens && deno task check:copy && deno task build && deno task check:binary",
|
||||
"gen:tokens": "cd apps/web && deno task gen:tokens"
|
||||
"ci": "deno task typecheck && deno task lint && deno task test:all && deno task check:tokens && deno task check:copy && deno task build && deno task check:binary",
|
||||
"gen:tokens": "cd apps/web && deno task gen:tokens",
|
||||
"release": {
|
||||
"description": "测试环境发布:要求工作区干净与 CHANGELOG 条目,打 tag、构建镜像、只替换 app、核对健康版本(scripts/release.sh)",
|
||||
"command": "bash scripts/release.sh"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user