Skip to content

Instantly share code, notes, and snippets.

@rascode
Last active November 17, 2021 20:02
Show Gist options
  • Save rascode/0c1ad75f2020281f9c71fab9de1db90c to your computer and use it in GitHub Desktop.
Save rascode/0c1ad75f2020281f9c71fab9de1db90c to your computer and use it in GitHub Desktop.
.gitignore template for node based projects
# environment variables
*.env*
# build output
dist
.next
target
# dependencies
node_modules
package-lock.json
yarn.lock
!/yarn.lock
test/node_modules
# logs & pids
*.log
pids
# coverage
coverage
# test output
test/**/out*
test/**/next-env.d.ts
.DS_Store
/e2e-tests
test/tmp/**
# Vercel
.vercel
# Cache
*.tsbuildinfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment