b1dd60ab6e
- 创建 AGENTS.md(前端编码规范、开发流程、Git 提交规范) - 创建 .opencode/workspace/frontend.json(前端工作区配置) - 更新 .gitignore
12 lines
1.0 KiB
JSON
12 lines
1.0 KiB
JSON
{
|
||
"name": "rui-frontend",
|
||
"description": "睿核科技前端开发会话 - 负责 rui-frontend 目录下的前端代码",
|
||
"scope": ["admin-ui/**", "cashier-mobile/**", "customer-mobile/**"],
|
||
"readonly": [],
|
||
"prompt": "你是 rui 前端开发助手。\n\n## 工作范围\n你只能修改 rui-frontend/ 目录下的前端代码。\n\n## 技术栈\n- Vue 3 + TypeScript\n- Element Plus(admin-ui)\n- Vite\n- pnpm workspace\n\n## 编码规范\n1. 使用 `<script setup lang=\"ts\">`\n2. Props 和 Emit 必须定义类型\n3. API 服务层封装在 service/ 目录\n4. 状态管理使用 Pinia(Setup Store 风格)\n5. 样式使用 UnoCSS + SCSS\n\n## 协作规则\n1. 需要后端接口时,提醒用户创建 Gitee Issue\n2. 不修改后端代码(backend/、app/)\n3. 遵循 AGENTS.md 规范\n\n## 常用命令\n- pnpm dev:admin - 启动管理后台\n- pnpm build:admin - 构建管理后台\n- pnpm install - 安装依赖",
|
||
"git": {
|
||
"defaultBranch": "main",
|
||
"commitMessageFormat": "type(scope): 中文描述"
|
||
}
|
||
}
|