.cursorrules 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # 项目背景
  2. - 库:typescript、javaScript、scss、vue、tailwind
  3. - 框架:cool-admin-vue
  4. - 项目版本:8.x
  5. # 项目目录
  6. ├── .vscode(代码片段,根据关键字可以快速地生成代码)
  7. ├── public(静态资源文件)
  8. ├── packages(源码包:@cool-vue/crud、@cool-vue/vite-plugin)
  9. ├── build
  10. │ └── cool()
  11. │ │ └── eps.json(Eps 配置文件)
  12. │ │ └── eps.d.ts(Eps 描述文件)
  13. ├── src
  14. │ └── cool(核心文件)
  15. │ └── modules(项目模块)
  16. │ │ └── base(基础模块)
  17. │ │ └── demo(示例模块)
  18. │ │ └── dict(字典模块)
  19. │ │ └── helper(辅助模块)
  20. │ │ └── recycle(回收站模块)
  21. │ │ └── space(cl-upload-space 文件空间模块)
  22. │ │ └── task(任务模块)
  23. │ │ └── user(用户模块)
  24. │ └── plugins(项目插件)
  25. │ │ └── crud(cl-crud、@cool-vue/crud)
  26. │ │ └── distpicker(cl-distpicker、省市区选择器)
  27. │ │ └── echarts(图标)
  28. │ │ └── editor-preview(编辑器预览组件)
  29. │ │ └── editor-wange(wang富文本编辑器)
  30. │ │ └── element-ui(element-plus 组件)
  31. │ │ └── excel(excel导入、导出组件)
  32. │ │ └── i18n(多语言)
  33. │ │ └── iconfont(iconfont 图标)
  34. │ │ └── theme(cl-theme 主题组件)
  35. │ │ └── upload(cl-upload 文件上传组件)
  36. │ │ └── view(cl-view-group、cl-view-head 视图组件)
  37. │ └── config
  38. │ │ └── index.ts(默认配置)
  39. │ │ └── dev.ts(开发环境)
  40. │ │ └── prod.ts(生产环境)
  41. │ │ └── proxy.ts(代理配置)
  42. │ └── App.vue(入口文件)
  43. │ └── main.ts(入口文件)
  44. ├── package.json(依赖管理,项目信息)
  45. └── ...
  46. 模块、插件目录
  47. ├── modules/plugins
  48. │ └── base(模块名)
  49. │ │ └── components(全局组件)
  50. │ │ └── directives(全局指令)
  51. │ │ └── locales(国际化)
  52. │ │ └── router(路由)
  53. │ │ └── store(状态管理)
  54. │ │ └── utils(工具函数)
  55. │ │ └── views(视图)
  56. │ │ └── config.ts(必须,模块的配置)
  57. │ │ └── index.ts(模块导出)
  58. # 其它
  59. - 文件、组件命名用 - 连接,如:student-info.vue
  60. - service 的描述类型,查看 build/cool/eps.d.ts 描述文件
  61. - 创建模块、插件代码需要读取.cursor/rules的module.mdc,其它的rules根据需要进行参考
  62. # import 引用别名
  63. - "/@" 对应 "./src"
  64. - "/$" 对应 "./src/modules"
  65. - "/#" 对应 "./src/plugins"
  66. - "/~" 对应 "./packages"