mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
Merge pull request #152 from VovanR/feature/gitignore
Add .gitignore file to generated application
This commit is contained in:
commit
9eedc6fd2f
@ -111,6 +111,9 @@ module.exports = generator.Base.extend({
|
|||||||
if(fs.lstatSync(fullPath).isDirectory()) {
|
if(fs.lstatSync(fullPath).isDirectory()) {
|
||||||
this.bulkDirectory(item, item);
|
this.bulkDirectory(item, item);
|
||||||
} else {
|
} else {
|
||||||
|
if (item === '.npmignore') {
|
||||||
|
this.copy(item, '.gitignore');
|
||||||
|
}
|
||||||
this.copy(item, item);
|
this.copy(item, item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -44,6 +44,7 @@ describe('react-webpack:app', () => {
|
|||||||
assert.file([
|
assert.file([
|
||||||
'.editorconfig',
|
'.editorconfig',
|
||||||
'.eslintrc',
|
'.eslintrc',
|
||||||
|
'.gitignore',
|
||||||
'.npmignore',
|
'.npmignore',
|
||||||
'.yo-rc.json'
|
'.yo-rc.json'
|
||||||
]);
|
]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user