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.
This commit is contained in:
+39
-2
@@ -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
|
||||
!.env.example
|
||||
.env.test
|
||||
.env.local
|
||||
|
||||
# IDE
|
||||
.idea/
|
||||
.vscode/
|
||||
*.iml
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
# Uploads
|
||||
uploads/
|
||||
|
||||
# Database
|
||||
*.db
|
||||
*.sqlite
|
||||
*.sqlite3
|
||||
Reference in New Issue
Block a user