mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-08-24 12:08:36 +08:00
Merge pull request #152 from VovanR/feature/gitignore
Add .gitignore file to generated application
This commit is contained in:
@@ -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