Angular2 .gitignore

34,696

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
Share:
34,696
jjz
Author by

jjz

Updated on January 14, 2020

Comments

  • jjz
    jjz over 4 years

    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
    
  • phil294
    phil294 about 7 years
    a ng new MyProject doesnt include any .gitignore file ...?
  • Günter Zöchbauer
    Günter Zöchbauer about 7 years
    I don't know why. I'm sure it should. This is the file it should generate github.com/angular/angular-cli/blob/…
  • phil294
    phil294 about 7 years
    thanks! found the issue. ng cli did not update properly due to stackoverflow.com/a/43525586/3779853 .
  • katie
    katie about 5 years
    What about /e2e/*.ts?
  • qaisjp
    qaisjp almost 5 years
  • Mauricio Gracia Gutierrez
    Mauricio Gracia Gutierrez about 3 years
    Year 2021 - This file is automatically generated when the app is created - ng version 11 - npm version 12 - @phil294