mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
Removed licence from copied files
Removed unneeded .npmignore copy Adjusted unittests to include .babelrc
This commit is contained in:
parent
7d01c86522
commit
e7501dccbd
@ -89,11 +89,12 @@ module.exports = generator.Base.extend({
|
||||
writing: function() {
|
||||
|
||||
let excludeList = [
|
||||
'LICENCE',
|
||||
'LICENSE',
|
||||
'README.md',
|
||||
'CHANGELOG.md',
|
||||
'node_modules',
|
||||
'package.json'
|
||||
'package.json',
|
||||
'.travis.yml'
|
||||
];
|
||||
|
||||
// Get all files in our repo and copy the ones we should
|
||||
@ -113,8 +114,9 @@ module.exports = generator.Base.extend({
|
||||
} else {
|
||||
if (item === '.npmignore') {
|
||||
this.copy(item, '.gitignore');
|
||||
} else {
|
||||
this.copy(item, item);
|
||||
}
|
||||
this.copy(item, item);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@ -42,10 +42,10 @@ describe('react-webpack:app', () => {
|
||||
it('should generate dot files', () => {
|
||||
|
||||
assert.file([
|
||||
'.babelrc',
|
||||
'.editorconfig',
|
||||
'.eslintrc',
|
||||
'.gitignore',
|
||||
'.npmignore',
|
||||
'.yo-rc.json'
|
||||
]);
|
||||
});
|
||||
@ -53,7 +53,6 @@ describe('react-webpack:app', () => {
|
||||
it('should generate project configuration files', () => {
|
||||
|
||||
assert.file([
|
||||
'LICENSE',
|
||||
'package.json'
|
||||
]);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user