feat: 初始化项目配置和基础架构
- 添加项目配置文件:.vercelignore、.codex/config.toml、postcss.config.js、.prettierrc 等 - 设置构建工具链:Vite + React + TypeScript + TailwindCSS - 添加核心组件:HeaderBar、TierRow、ItemCard、Pool - 配置 CI/CD 和部署相关文件:vercel.json、DEPLOY.md - 添加开发工具配置:ESLint、Prettier、EditorConfig - 实现基础功能:拖拽排序、图片处理、状态管理
This commit is contained in:
45
.trae/documents/添加 .gitignore 并配置忽略规则.md
Normal file
45
.trae/documents/添加 .gitignore 并配置忽略规则.md
Normal file
@ -0,0 +1,45 @@
|
||||
## 项目检测结论
|
||||
- 当前为 Node.js + Vite + TypeScript 项目(存在 `package.json`, `vite.config.ts`, `tsconfig.json`)
|
||||
- 尚未存在 `.gitignore`;常见生成目录(如 `dist/`、`build/`、`coverage/`)目前未生成,但应预先忽略
|
||||
|
||||
## 将新增的文件
|
||||
- 在项目根目录创建 `.gitignore`
|
||||
|
||||
## 忽略规则(按类别)
|
||||
- 依赖目录:
|
||||
- `node_modules/`
|
||||
- 构建产物:
|
||||
- `dist/`
|
||||
- `build/`
|
||||
- 测试与覆盖率:
|
||||
- `coverage/`
|
||||
- 日志:
|
||||
- `*.log`
|
||||
- `npm-debug.log*`
|
||||
- `yarn-debug.log*`
|
||||
- `yarn-error.log*`
|
||||
- `pnpm-debug.log*`
|
||||
- `lerna-debug.log*`
|
||||
- 编辑器与 IDE:
|
||||
- `.vscode/`
|
||||
- `.idea/`
|
||||
- 操作系统:
|
||||
- `.DS_Store`
|
||||
- `Thumbs.db`
|
||||
- 环境变量:
|
||||
- `.env`
|
||||
- `.env.*`
|
||||
- `!.env.example`
|
||||
- TypeScript 与工具缓存:
|
||||
- `*.tsbuildinfo`
|
||||
- `.eslintcache`
|
||||
- `.tmp/`
|
||||
- `.cache/`
|
||||
|
||||
## 说明
|
||||
- 不忽略 `package-lock.json`,保持可重复安装
|
||||
- 以上规则覆盖 Vite/TS 常见产物与通用杂项,安全且常用
|
||||
|
||||
## 验证方式
|
||||
- 创建后运行构建与开发流程,确认新生成的产物未被纳入 Git 变更
|
||||
- 可根据后续引入的工具(如 Cypress、Storybook 等)补充相应忽略项
|
||||
Reference in New Issue
Block a user