Skip to content

Instantly share code, notes, and snippets.

@loclv
Created January 26, 2024 03:50
Show Gist options
  • Select an option

  • Save loclv/da0b78ebf3473ba86cf1cb7441ef4544 to your computer and use it in GitHub Desktop.

Select an option

Save loclv/da0b78ebf3473ba86cf1cb7441ef4544 to your computer and use it in GitHub Desktop.
Simple git ignore configuration for Node.js/Bun backend development
# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore
# Logs
logs
_.log
npm-debug.log_
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
# Caches
.cache
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
# Runtime data
pids
_.pid
_.seed
*.pid.lock
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional stylelint cache
.stylelintcache
# Optional REPL history
.node_repl_history
# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local
# IntelliJ based IDEs
.idea
# Finder (MacOS) folder config
.DS_Store
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment