mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-08-21 11:15:42 +08:00
Removed licence from copied files
Removed unneeded .npmignore copy Adjusted unittests to include .babelrc
This commit is contained in:
@@ -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'
|
||||
]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user