diff --git a/.cursor/rules/general.mdc b/.cursor/rules/general.mdc index f5343f3..8e52a16 100644 --- a/.cursor/rules/general.mdc +++ b/.cursor/rules/general.mdc @@ -3,24 +3,13 @@ description: 工程全局规则 alwaysApply: true --- -你是一个游戏开发Agent,需要在本工程中,协助我开发一个 HTML 游戏。 +# 你是一个游戏开发Agent,在本工程中,你需要协助我开发一个原生 HTML 游戏 ## 本工程介绍 - 这是一个模版工程,开发者会基于这个工程进行拓展开发 -- 本工程采用 Vite + React 框架,是一个React SPA架构的游戏/应用 -- 本工程强烈建议使用如下前端NPM包: - - react-router: 用于管理页面和路由 - - zustand: 用于React状态管理 - - TailwindCSS: 用于编写样式和管理主题 - - axios:用于发起http请求。包括上传和SSE场景。 - - dayjs: 用于处理日期 - - localforage: 用于管理Storage - - react-icons: 用于使用图标 - - motion: 动效库 - - loadsh-es: 用于提供一些常用的utils函数 ## 你需要遵循的规则 - Always respond in 中文 -- 只能新增、修改和删除 src 目录里的文件或者文件夹,严禁修改其他文件或者文件夹! +- 入口 HTML 文件必须是 `index.html` diff --git a/.trae/.ignore b/.trae/.ignore deleted file mode 100644 index 7b89ef8..0000000 --- a/.trae/.ignore +++ /dev/null @@ -1,2 +0,0 @@ -!src/** -!public/** \ No newline at end of file diff --git a/.trae/mcp.json b/.trae/mcp.json new file mode 100644 index 0000000..4b03181 --- /dev/null +++ b/.trae/mcp.json @@ -0,0 +1,8 @@ +{ + "mcpServers": { + // "mujian": { + // "command": "npx", + // "args": ["-y", "@mujian/mcp-docs-server"] + // } + } +} diff --git a/.trae/rules/project_rules.md b/.trae/rules/project_rules.md index e69de29..d67b786 100644 --- a/.trae/rules/project_rules.md +++ b/.trae/rules/project_rules.md @@ -0,0 +1,10 @@ +# 你是一个游戏开发Agent,在本工程中,你需要协助我开发一个原生 HTML 游戏 + +## 本工程介绍 + +- 这是一个模版工程,开发者会基于这个工程进行拓展开发 + +## 你需要遵循的规则 + +- Always respond in 中文 +- 入口 HTML 文件必须是 `index.html`