Skip to content

Instantly share code, notes, and snippets.

@andreasonny83
Last active May 30, 2024 18:39
Show Gist options
  • Save andreasonny83/b24e38b7772a3ea362d8e8d238d5a7bc to your computer and use it in GitHub Desktop.
Save andreasonny83/b24e38b7772a3ea362d8e8d238d5a7bc to your computer and use it in GitHub Desktop.
Gitignore template for JavaScript projects
# See http://help.github.com/ignore-files/ for more about ignoring files.
# compiled output
/dist
/tmp
/out-tsc
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# IDEs and editors
.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace
# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
# misc
.sass-cache
connect.lock
typings
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Dependency directories
node_modules/
jspm_packages/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
# next.js build output
.next
# Lerna
lerna-debug.log
# System Files
.DS_Store
Thumbs.db
@bztoy
Copy link

bztoy commented Mar 14, 2023

Thanks for sharing.

@tricerintops
Copy link

Does anyone know why GitHub doesn't already have a .gitignore template for javascript in the dropdown when creating a new repository?

@WojtekCodesToday
Copy link

Does anyone know why GitHub doesn't already have a .gitignore template for javascript in the dropdown when creating a new repository?

probably github devs (creators) being lazy

@CD-Rom01100001
Copy link

Thank you!

@mrdnr
Copy link

mrdnr commented Jul 11, 2023

Thx for info

@ramazansancar
Copy link

@tricerintops Does anyone know why GitHub doesn't already have a .gitignore template for javascript in the dropdown when creating a new repository?
FYI @WojtekCodesToday

It is located under the name "Node" :)

Here:
image

@andreasonny83
Copy link
Author

Thank you @ramazansancar .
I know this is now integrated into GitHub. However, at the time I created this file, the integration did not exist.

@WojtekCodesToday
Copy link

@tricerintops Does anyone know why GitHub doesn't already have a .gitignore template for javascript in the dropdown when creating a new repository?
FYI @WojtekCodesToday

It is located under the name "Node" :)

Here: image

Thanks, i use some keywords that aren't there, that's why.
(i hope "Deno" exists)

Copy link

ghost commented Oct 24, 2023

Thanks man!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment