From e7501dccbded07cab8f7096589bcf56519b5c484 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 18 Nov 2015 08:19:12 +0100 Subject: [PATCH] Removed licence from copied files Removed unneeded .npmignore copy Adjusted unittests to include .babelrc --- generators/app/index.js | 8 +++++--- test/generators/app/indexTest.js | 3 +-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/generators/app/index.js b/generators/app/index.js index 0da3e55..5c19dd8 100644 --- a/generators/app/index.js +++ b/generators/app/index.js @@ -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); } } }); diff --git a/test/generators/app/indexTest.js b/test/generators/app/indexTest.js index c8aa927..802e964 100644 --- a/test/generators/app/indexTest.js +++ b/test/generators/app/indexTest.js @@ -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' ]); });