From ee2a74ef2a1b89f1bc28991899f62153a852d43b Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Thu, 29 Jan 2026 14:08:31 -0500 Subject: [PATCH] chore: update .gitignore for Node.js and TypeScript - Add node_modules/ and npm debug logs - Add TypeScript build artifacts (*.tsbuildinfo) - Ignore compiled JS files in web/static/ - Keep htmx.min.js (third-party library) - Add IDE ignores (.idea, .vscode) - Add OS ignores (DS_Store, Thumbs.db) - Add database and uploads directories - Ignore package-lock.json (use npm shrinkwrap for production if needed) Standard ignore patterns for modern web development with Go backend. --- .gitignore | 41 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 7b0d293..9a1d56a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,17 +1,37 @@ -# Ignore build artifacts and logs +# Build artifacts bookmann/ bookmann.* !bookmann/ +# Node.js +node_modules/ +npm-debug.log* +yarn-debug.log* +yarn-error.log* +package-lock.json +.pnpm-debug.log* + +# TypeScript +*.tsbuildinfo +*.d.ts.map + +# Compiled JavaScript (keep .ts source, ignore .js) +web/static/*.js +!web/static/htmx.min.js + # Temporary files tmp/ temp/ *.tmp +*.swp +*.swo +*~ # Testing coverage *.out *.cover coverage.html +*.test # Logs *.log @@ -19,4 +39,21 @@ coverage.html # Environment .env -!.env.example \ No newline at end of file +!.env.example +.env.test +.env.local + +# IDE +.idea/ +.vscode/ +*.iml +.DS_Store +Thumbs.db + +# Uploads +uploads/ + +# Database +*.db +*.sqlite +*.sqlite3 \ No newline at end of file