forked from ParadigmEducation/snowflake-notes
docs(AGENTS): 开始工作前必做步骤(pull + 查看历史 + 分支差异)
This commit is contained in:
@@ -54,6 +54,14 @@
|
|||||||
- `pnpm preview` 预览构建结果。
|
- `pnpm preview` 预览构建结果。
|
||||||
- `pnpm lint` 代码检查;`pnpm typecheck` 类型检查;`pnpm format` 统一格式化。
|
- `pnpm lint` 代码检查;`pnpm typecheck` 类型检查;`pnpm format` 统一格式化。
|
||||||
|
|
||||||
|
### 开始工作前(必做)
|
||||||
|
|
||||||
|
- 同步最新代码:`git fetch --all --prune && git pull --rebase`
|
||||||
|
- 浏览近期提交:`git log --oneline --decorate --graph -n 20`
|
||||||
|
- 关注分支差异:`git diff --stat origin/$(git rev-parse --abbrev-ref HEAD)...HEAD`
|
||||||
|
- 若锁文件变更:`pnpm install`(保持本地依赖与团队一致)
|
||||||
|
- 新任务建议开分支:`git switch -c feature/<topic>`;提交信息用中文清晰描述变更意图
|
||||||
|
|
||||||
### 依赖版本策略
|
### 依赖版本策略
|
||||||
|
|
||||||
- 版本范围由 pnpm 写入:不要在 `package.json` 手写 `latest` 或具体版本号。
|
- 版本范围由 pnpm 写入:不要在 `package.json` 手写 `latest` 或具体版本号。
|
||||||
|
|||||||
Reference in New Issue
Block a user