chore(project): 更新 .gitignore 配置以忽略更多文件类型

- 添加 .pnp 和 .pnp.js 到依赖忽略列表
- 增加 build/ 目录到构建输出忽略
- 添加多种环境变量文件格式到忽略列表
- 增加日志文件和调试日志的忽略规则
- 添加编辑器相关文件和目录的忽略配置
- 增加运行时 PID 文件的忽略规则
- 添加测试覆盖率目录 coverage/ 的忽略
- 为服务器模拟环境添加 node_modules/ 和 dist/ 忽略规则
This commit is contained in:
2026-06-11 15:20:06 +08:00
parent fdae1b1834
commit f7fff177b0

47
.gitignore vendored
View File

@@ -1,6 +1,49 @@
# Dependencies
node_modules/
.pnp
.pnp.js
# Build output
dist/
node_modules/
dist/
build/
# Local env files
.env
.env.local
.env.*.local
# Logs
logs/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Editor directories and files
.idea/
*.iml
.vscode/
*.swp
*.swo
*~
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.user
Thumbs.db
# Runtime
pids/
*.pid
*.seed
*.pid.lock
# Coverage directory
coverage/
# Server mock (Node.js mock server - not the real backend)
server/node_modules/
server/dist/