Merge pull request #152 from VovanR/feature/gitignore

Add .gitignore file to generated application
This commit is contained in:
Chris 2015-10-14 07:13:59 +02:00
commit 9eedc6fd2f
2 changed files with 4 additions and 0 deletions

View File

@ -111,6 +111,9 @@ module.exports = generator.Base.extend({
if(fs.lstatSync(fullPath).isDirectory()) {
this.bulkDirectory(item, item);
} else {
if (item === '.npmignore') {
this.copy(item, '.gitignore');
}
this.copy(item, item);
}
}

View File

@ -44,6 +44,7 @@ describe('react-webpack:app', () => {
assert.file([
'.editorconfig',
'.eslintrc',
'.gitignore',
'.npmignore',
'.yo-rc.json'
]);