From 0c4b6aaa6d8aa6e87fe408982bfe47ba46bbac57 Mon Sep 17 00:00:00 2001 From: wurenzhi Date: Tue, 17 Mar 2026 22:19:19 +0800 Subject: [PATCH] =?UTF-8?q?docs(.gitignore):=20=E6=9B=B4=E6=96=B0.gitignor?= =?UTF-8?q?e=E6=96=87=E4=BB=B6=E4=BB=A5=E5=8C=85=E5=90=AB=E6=9B=B4?= =?UTF-8?q?=E5=A4=9A=E5=B8=B8=E8=A7=81=E5=BF=BD=E7=95=A5=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加了更详细的分类和常见忽略项,包括依赖目录、构建输出、日志文件、环境变量、IDE文件、操作系统生成文件等,使项目更加规范 --- .gitignore | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index cb3c464..87677e4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,15 +1,39 @@ +# Dependencies node_modules/ -.DS_Store + +# Build outputs dist/ build/ + +# Logs +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +# Environment variables .env .env.local .env.development.local .env.test.local .env.production.local -npm-debug.log* -yarn-debug.log* -yarn-error.log* + +# IDE and editor files .vscode/ .idea/ -*.log +*.swp +*.swo +*~ + +# OS generated files +.DS_Store +Thumbs.db + +# Coverage directory +coverage/ + +# Temporary files +*.tmp +*.temp +.cache/ \ No newline at end of file