feat: 初始化项目结构并添加基础配置
添加前后端基础项目结构,包括.gitignore、package.json等配置文件 实现前端基础功能模块,包括路由、状态管理、API请求封装等 添加前端UI组件库和样式体系 配置开发环境Mock系统和构建工具链
This commit is contained in:
15
front-end/AI-Coding/09-Plop.md
Normal file
15
front-end/AI-Coding/09-Plop.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# 09. 代码生成(Plop)
|
||||
|
||||
- 文件:`plopfile.js`
|
||||
- 生成器:`view` / `curd` / `component` / `mock&api`
|
||||
|
||||
运行:
|
||||
|
||||
```powershell
|
||||
pnpm run template
|
||||
```
|
||||
|
||||
## AI 使用建议
|
||||
|
||||
- 如果后续 AI 以“生成代码”为策略,可优先复用 plop 模板,而不是从零写
|
||||
- 新增生成器前,先在 `openspec-lite/project.yaml` 里补充命名/目录约束
|
||||
Reference in New Issue
Block a user