2016-05-12 5 views
11

मैं कोणीय 2 सीखने और वर्तमान में नमूना प्रोजेक्ट स्थापित करने की कोशिश कर रहा हूं। मैं बस जानना चाहता हूं कि मेरा .gitignore पहले से ही पर्याप्त है या क्या मुझे कुछ याद आया?कोणीय 2 .gitignore

node_modules 
typings 
jspm_packages 
bower_components 
app/**/*.js 
app/**/*.map 

टीआईए!

उत्तर

22

angular-cli

# 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 
+1

एक 'एनजी नई MyProject' does not किसी भी' .gitignore' फ़ाइल को शामिल उत्पन्न करता है ...? – Blauhirn

+0

मुझे नहीं पता क्यों। मुझे यकीन है कि यह चाहिए। यह वह फ़ाइल है जिसे इसे https://github.com/angular/angular-cli/blob/e9372d3c11af622f026d391088e173eb5c66bda9/packages/%40angular/cli/blueprints/ng/files/gitignore –

+1

धन्यवाद देना चाहिए! मुद्दा मिला। http://stackoverflow.com/a/43525586/3779853 के कारण ng cli ठीक से अपडेट नहीं किया गया था। – Blauhirn