From 4d85b6bd249e35e66a728fb5ccd1397aac6f3b97 Mon Sep 17 00:00:00 2001 From: xujiang Date: Tue, 8 Jul 2025 17:36:52 +0800 Subject: [PATCH] feat: add comprehensive .gitignore file - Ignore node_modules, build files, and dependencies - Exclude environment files and IDE configurations - Add backend and admin specific ignores for future development - Cover OS generated files and temporary files --- .gitignore | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1adf510 --- /dev/null +++ b/.gitignore @@ -0,0 +1,95 @@ +# Dependencies +node_modules/ +*/node_modules/ + +# Next.js build output +.next/ +out/ +build/ + +# Production builds +dist/ +build/ + +# Development files +.DS_Store +*.log +*.log.* +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.pnpm-debug.log* + +# Environment variables +.env +.env.local +.env.development.local +.env.test.local +.env.production.local + +# IDE and editor files +.vscode/ +.idea/ +*.swp +*.swo +*~ + +# OS generated files +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db + +# TypeScript +*.tsbuildinfo +next-env.d.ts + +# Vercel +.vercel + +# Testing +coverage/ +.nyc_output/ + +# Locking files +package-lock.json +yarn.lock +bun.lockb + +# Cache directories +.cache/ +.parcel-cache/ +.npm/ +.yarn/ + +# Temporary files +*.tmp +*.temp +.tmp/ +.temp/ + +# Backend specific +backend/node_modules/ +backend/.env +backend/dist/ +backend/build/ +backend/uploads/ +backend/logs/ + +# Admin specific +admin/node_modules/ +admin/.env +admin/dist/ +admin/build/ + +# Database +*.db +*.sqlite +*.sqlite3 + +# Logs +logs/ +*.log \ No newline at end of file