A good[ish] website
Web development blog, loads of UI and JavaScript topics
Here’s an example .gitignore file for reference, which contains most of the things that need ignoring in a normal JavaScript project.
The concept of .gitignore
file is simple: stuff in it doesn’t get added to Git. Lines starting with #
are comments.
Here’s an example file that I always use:
.env
.env-development
.env-production
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Dependency directories
node_modules/
jspm_packages/
# Optional npm cache directory
.npm
# Output of 'npm pack'
*.tgz
# Random crap
trash
.DS_Store
.sass-cache
.tmp
.rvmrc
.trashes
*~
# Gatsby related
.cache/
public
# Editor
.vscode
.vscode-test
*.sublime-project
*.sublime-workspace
sftp-config.json
.gitignore
here.gitignore
filesComments would go here, but the commenting system isn’t ready yet, sorry.