问题
I'm setting up an Angular 2 sample project. Is my .gitignore
enough already or did I miss anything?
node_modules
typings
jspm_packages
bower_components
app/**/*.js
app/**/*.map
回答1:
angular-cli
generates
# See http://help.github.com/ignore-files/ for more about ignoring files.
# compiled output
/dist
/tmp
/out-tsc
# dependencies
/node_modules
# 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
/coverage
/libpeerconnection.log
npm-debug.log
testem.log
/typings
# e2e
/e2e/*.js
/e2e/*.map
# System Files
.DS_Store
Thumbs.db
来源:https://stackoverflow.com/questions/37187092/angular2-gitignore