mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-10-08 12:08:48 +08:00
Merge pull request #152 from VovanR/feature/gitignore
Add .gitignore file to generated application
This commit is contained in:
commit
9eedc6fd2f
2 files changed
+4
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,6 +44,7 @@ describe('react-webpack:app', () => {
|
||||
assert.file([
|
||||
'.editorconfig',
|
||||
'.eslintrc',
|
||||
'.gitignore',
|
||||
'.npmignore',
|
||||
'.yo-rc.json'
|
||||
]);
|
||||
|
||||
Reference in new issue
Block a user