Removed licence from copied files

Removed unneeded .npmignore copy
Adjusted unittests to include .babelrc
This commit is contained in:
Chris
2015-11-18 08:19:12 +01:00
parent 7d01c86522
commit e7501dccbd
2 changed files with 6 additions and 5 deletions
+5 -3
View File
@@ -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);
}
}
});
+1 -2
View File
@@ -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'
]);
});