My .gitignore for Node

1 min read
# Secrets
[Ss]ecret.*
*.sql
*.env
*.env.*
!*.env.template
!*.env.*.template
*.local
# Setup samples
!/setup
# Temps
**/[Tt]emp
**/[Tt]emps
**/.DS_Store
**/._.DS_Store
vite.config.*.timestamp-*
*.log
yarn-error.log
# Packages
node_modules
node_modules*
vendor
**/.pnp.*
**/.yarn/*
!**/.yarn/patches
!**/.yarn/plugins
!**/.yarn/releases
!**/.yarn/sdks
!**/.yarn/versions
.parcel-cache
# The Build
build
dist
# Variable Data
data
/src/data
/api/data
/server/api/data
1
Subscribe to my newsletter
Read articles from Shahab Movahhedi directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Shahab Movahhedi
Shahab Movahhedi
Senior Developer, Designer, Technologist! ๐ฎ๐ท