Skip to content

H:1. Ignoring Files

Cody Brunner edited this page Mar 12, 2017 · 3 revisions

If you have not created a .gitignore yet then this would be a great time to do so as we will be adding packages from npm (or yarn) and populating a node_modules directory full of goodies that you really don't want to send up to Github.

Yellow-Stone:picnic-basket-generator yogibear$ touch .gitignore

.gitignore

# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

# 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

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
dist
es
lib

# Dependency directories
node_modules
jspm_packages

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

# Editors (any Editor generated settings)
.vscode
.idea

# Package - Generated after running npm pack or yarn pack.
package

# Other
.DS_Store
.env

For more information visit: GitHub's Ignoring Files article.