我正在建立一个Angular 2示例项目。我的.gitignore已经足够了吗?还是我错过了什么?
.gitignore
node_modules typings jspm_packages bower_components app/**/*.js app/**/*.map
q3qa4bjr1#
angular-cli生成
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
sxpgvts32#
由"@angular/cli": "~15.0.2"更新了Angular 15.0.0的自动生成.gitignore,包括/.angular/cache和其他应在Angular中忽略的新文件夹:
"@angular/cli": "~15.0.2"
15.0.0
/.angular/cache
# See http://help.github.com/ignore-files/ for more about ignoring files. # Compiled output /dist /tmp /out-tsc /bazel-out # Node /node_modules npm-debug.log yarn-error.log # IDEs and editors .idea/ .project .classpath .c9/ *.launch .settings/ *.sublime-workspace # Visual Studio Code .vscode/* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json .history/* # Miscellaneous /.angular/cache .sass-cache/ /connect.lock /coverage /libpeerconnection.log testem.log /typings # System files .DS_Store Thumbs.db
2条答案
按热度按时间q3qa4bjr1#
angular-cli
生成sxpgvts32#
由
"@angular/cli": "~15.0.2"
更新了Angular15.0.0
的自动生成.gitignore
,包括/.angular/cache
和其他应在Angular中忽略的新文件夹: