- 根目录、zhican/、miniprogram/ 三层 .gitignore 就位 - 删除 package-lock.json,仓库统一追踪 pnpm-lock.yaml - vite.config.ts 拆出 vue-vendor(vue/vue-router/pinia); ant-design-vue 体积~1MB,继续按路由 code-split,不入 manualChunks - 新增根 CLAUDE.md 记录仓库结构、常用命令、antd 类型陷阱、 构建门禁、vendor 拆分策略等 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
38 lines
808 B
Plaintext
38 lines
808 B
Plaintext
# ============ 依赖 ============
|
|
node_modules
|
|
# 统一使用 pnpm,禁止意外提交 npm/yarn 锁文件
|
|
package-lock.json
|
|
yarn.lock
|
|
|
|
# ============ 构建产物 ============
|
|
dist
|
|
dist-ssr
|
|
*.tsbuildinfo
|
|
|
|
# ============ 测试/覆盖率 ============
|
|
coverage
|
|
.nyc_output
|
|
|
|
# ============ 日志 ============
|
|
*.log
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
pnpm-debug.log*
|
|
lerna-debug.log*
|
|
|
|
# ============ 环境变量 ============
|
|
.env
|
|
.env.*
|
|
!.env.example
|
|
*.local
|
|
|
|
# ============ 系统垃圾 ============
|
|
.DS_Store
|
|
|
|
# ============ unplugin 自动生成的类型声明 ============
|
|
# 这些文件由 unplugin-auto-import / unplugin-vue-components 在 dev/build 时重新生成
|
|
# 提交进 git 会反复制造无意义 diff,且容易合并冲突
|
|
admin/src/auto-imports.d.ts
|
|
admin/src/components.d.ts
|