Skip to content

Instantly share code, notes, and snippets.

@coltenkrauter
Created September 24, 2023 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coltenkrauter/31aae9f72921fa151454833748b655af to your computer and use it in GitHub Desktop.
Save coltenkrauter/31aae9f72921fa151454833748b655af to your computer and use it in GitHub Desktop.
This gist provides the ultimate .gitignore file tailored for TypeScript projects, covering Node.js, IDE-specific, and operating system files to be ignored by Git.
# ---> Node.js and NPM packages
node_modules/
package-lock.json
yarn.lock
# ---> TypeScript Compiler Output
dist/
*.tsbuildinfo
# ---> IDE - Visual Studio Code
.vscode/
*.code-workspace
# ---> IDE - WebStorm, IntelliJ
.idea/
# ---> MacOS
.DS_Store
# ---> Logs
logs/
*.log
npm-debug.log*
# ---> Environment variables
.env
# ---> Dependency directories
bower_components/
# ---> Unix OS generated files
*.swp
*.swo
*~
# ---> Temporary files
*.tmp
*.temp
*.swp
*.swo
# ---> Operating System generated files
ehthumbs.db
Thumbs.db
EOL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment