Files
JayuCloud/docx/handoff/HANDOFF-BOOT.md
T

34 lines
1.6 KiB
Markdown
Raw Normal View History

# Handoff Boot
2026-06-05 12:52:38 +08:00
用途:新一轮接手时先读本文件,再读 `CURRENT-STATE.md` 和 `PROJECT-MAP.md`。
2026-06-05 12:52:38 +08:00
## 开工顺序
2026-06-05 12:52:38 +08:00
1. 运行 `rtk git status --short`,确认当前工作区改动。
2. 阅读 `docx/handoff/CURRENT-STATE.md`。
3. 阅读 `docx/handoff/PROJECT-MAP.md`。
4. 涉及 SQL 时,先阅读 `docx/design/上线初始化SQL基线说明_20260624.md`。
5. 修改代码前按 GitNexus 规则做 impact;提交前做 `detect_changes(scope="all")`。如 MCP 返回 `Transport closed`,记录原因并用 `git diff` 和测试结果兜底。
2026-06-05 12:52:38 +08:00
## 当前 SQL 规则
2026-06-05 12:52:38 +08:00
- 唯一初始化 SQL:`scripts/sql/init/FingertipDesigner.sql`。
- 开发、测试、上线空库初始化只执行该文件。
- `scripts/sql/migrations` 当前不保留历史迁移 SQL。
- 后续新增表、字段、索引或运行必需种子数据时,必须同步更新初始化 SQL。
- 生产已部署库升级不直接复用初始化 SQL;如需升级已有库,必须单独制定迁移方案并经人工确认。
2026-06-05 12:52:38 +08:00
## 常用验证
2026-06-05 12:52:38 +08:00
```powershell
rtk git --no-pager diff --check
2026-06-24 16:13:49 +08:00
rtk mvn -f FD-Core/pom.xml test
rtk mvn -f FD-Gateway/pom.xml test
2026-06-05 12:52:38 +08:00
```
小程序静态语法检查可使用:
2026-06-05 12:52:38 +08:00
```powershell
rtk node -e "const fs=require('fs');const path=require('path');let n=0;function walk(d){for(const e of fs.readdirSync(d,{withFileTypes:true})){const p=path.join(d,e.name);if(e.isDirectory())walk(p);else if(e.isFile()&&p.endsWith('.js')){new Function(fs.readFileSync(p,'utf8'));n++;}}}['FM-Wechat-Fronted/api','FM-Wechat-Fronted/utils','FM-Wechat-Fronted/pages'].forEach(walk);console.log('checked '+n+' js files')"
2026-06-05 12:52:38 +08:00
```