From f7fff177b080c7292a0b59dd46d5c7e783a866b1 Mon Sep 17 00:00:00 2001 From: Joshi <3040996759@qq.com> Date: Thu, 11 Jun 2026 15:20:06 +0800 Subject: [PATCH] =?UTF-8?q?chore(project):=20=E6=9B=B4=E6=96=B0=20.gitigno?= =?UTF-8?q?re=20=E9=85=8D=E7=BD=AE=E4=BB=A5=E5=BF=BD=E7=95=A5=E6=9B=B4?= =?UTF-8?q?=E5=A4=9A=E6=96=87=E4=BB=B6=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 .pnp 和 .pnp.js 到依赖忽略列表 - 增加 build/ 目录到构建输出忽略 - 添加多种环境变量文件格式到忽略列表 - 增加日志文件和调试日志的忽略规则 - 添加编辑器相关文件和目录的忽略配置 - 增加运行时 PID 文件的忽略规则 - 添加测试覆盖率目录 coverage/ 的忽略 - 为服务器模拟环境添加 node_modules/ 和 dist/ 忽略规则 --- .gitignore | 47 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 45 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c615bef..28291f3 100644 --- a/.gitignore +++ b/.gitignore @@ -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/