Workaround for Yeoman generators not producing .gitignore files due to Yeoman issue #1862

This commit is contained in:
SteveSandersonMS
2016-06-22 10:57:00 +01:00
parent 7e51fc4480
commit d3ded5bbdf
9 changed files with 32 additions and 17 deletions

7
.gitignore vendored
View File

@@ -29,3 +29,10 @@ project.lock.json
.vs/
npm-debug.log
/.build/
# The templates can't contain their own .gitignore files, because Yeoman has strange default handling for
# files with that name (https://github.com/npm/npm/issues/1862). So, each template instead has a template_gitignore
# file which gets renamed after the files are copied. And so any files that need to be excluded in the source
# repo have to be excluded here.
/templates/*/node_modules/
/templates/*/wwwroot/dist/