# 依赖目录 node_modules/ npm-debug.log* yarn-debug.log* yarn-error.log* # 构建输出 dist/ build/ *.tgz *.tar.gz # 环境变量文件 .env .env.local .env.development.local .env.test.local .env.production.local # 日志文件 logs/ *.log lerna-debug.log* # 运行时数据 pids/ *.pid *.seed *.pid.lock # 覆盖目录 lib-cov/ coverage/ .nyc_output/ # 测试输出 .grunt/ .tmp/ # 依赖锁定文件 (保留package-lock.json但忽略yarn.lock) yarn.lock # 可选npm缓存目录 .npm # 可选eslint缓存 .eslintcache # 可选stylelint缓存 .stylelintcache # Microbundle缓存 .rpt2_cache/ .rts2_cache_cjs/ .rts2_cache_es/ .rts2_cache_umd/ # 可选REPL历史 .node_repl_history # 输出目录 *.tsbuildinfo # Yarn完整性文件 .yarn-integrity # dotenv环境变量文件 .env.test # parcel-bundler缓存 (https://parceljs.org/) .cache .parcel-cache # Next.js构建输出 .next out # Nuxt.js构建/生成输出 .nuxt # Gatsby文件 .cache/ public # Vuepress构建输出 .vuepress/dist # Serverless目录 .serverless/ # FuseBox缓存 .fusebox/ # DynamoDB本地文件 .dynamodb/ # TernJS端口文件 .tern-port # 存储动态工作流的配置 .github/ !.github/workflows/ # IDE文件 .vscode/ .idea/ *.swp *.swo *~ # OS生成的文件 .DS_Store .DS_Store? ._* .Spotlight-V100 .Trashes ehthumbs.db Thumbs.db # 项目特定文件 # 上传文件目录 server/uploads/* !server/uploads/.gitkeep # 输出文件目录 server/outputs/* !server/outputs/.gitkeep # 临时文件 temp/ tmp/ # 备份文件 *.bak *.backup # 压缩文件 *.zip *.rar *.7z # 数据库文件 *.sqlite *.db # Docker相关 .dockerignore # MongoDB数据 data/ # SSL证书 *.pem *.key *.crt ssl/ # 配置文件备份 config/*.bak # 测试报告 test-results/ coverage.xml junit.xml # Storybook构建输出 storybook-static/ # TypeScript构建信息 *.tsbuildinfo # Optional npm cache directory .npm # Optional eslint cache .eslintcache # Husky .husky/_ # 本地数据库 db.json # 错误日志 error.log access.log # PM2 ecosystem.config.js # 监控配置 prometheus.yml grafana/ # 文档生成 docs/build/