mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-09-09 11:22:44 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aa468d529d | ||
|
|
62b36813b3 | ||
|
|
e7501dccbd |
@@ -1,5 +1,10 @@
|
|||||||
# generator-react-webpack - Changelog
|
# generator-react-webpack - Changelog
|
||||||
|
|
||||||
|
## 3.0.1
|
||||||
|
___Upgrades___:
|
||||||
|
1. Unneeded files (License, .npmignore) are not copied anymore
|
||||||
|
2. Existence of .babelrc is now checked in unit tests
|
||||||
|
|
||||||
## 3.0.0
|
## 3.0.0
|
||||||
___Upgrades___:
|
___Upgrades___:
|
||||||
|
|
||||||
|
|||||||
@@ -89,11 +89,12 @@ module.exports = generator.Base.extend({
|
|||||||
writing: function() {
|
writing: function() {
|
||||||
|
|
||||||
let excludeList = [
|
let excludeList = [
|
||||||
'LICENCE',
|
'LICENSE',
|
||||||
'README.md',
|
'README.md',
|
||||||
'CHANGELOG.md',
|
'CHANGELOG.md',
|
||||||
'node_modules',
|
'node_modules',
|
||||||
'package.json'
|
'package.json',
|
||||||
|
'.travis.yml'
|
||||||
];
|
];
|
||||||
|
|
||||||
// Get all files in our repo and copy the ones we should
|
// Get all files in our repo and copy the ones we should
|
||||||
@@ -113,8 +114,9 @@ module.exports = generator.Base.extend({
|
|||||||
} else {
|
} else {
|
||||||
if (item === '.npmignore') {
|
if (item === '.npmignore') {
|
||||||
this.copy(item, '.gitignore');
|
this.copy(item, '.gitignore');
|
||||||
|
} else {
|
||||||
|
this.copy(item, item);
|
||||||
}
|
}
|
||||||
this.copy(item, item);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "generator-react-webpack",
|
"name": "generator-react-webpack",
|
||||||
"version": "3.0.0",
|
"version": "3.0.1",
|
||||||
"description": "Yeoman generator for using React with Webpack via Babel",
|
"description": "Yeoman generator for using React with Webpack via Babel",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"yeoman-generator",
|
"yeoman-generator",
|
||||||
|
|||||||
@@ -42,10 +42,10 @@ describe('react-webpack:app', () => {
|
|||||||
it('should generate dot files', () => {
|
it('should generate dot files', () => {
|
||||||
|
|
||||||
assert.file([
|
assert.file([
|
||||||
|
'.babelrc',
|
||||||
'.editorconfig',
|
'.editorconfig',
|
||||||
'.eslintrc',
|
'.eslintrc',
|
||||||
'.gitignore',
|
'.gitignore',
|
||||||
'.npmignore',
|
|
||||||
'.yo-rc.json'
|
'.yo-rc.json'
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
@@ -53,7 +53,6 @@ describe('react-webpack:app', () => {
|
|||||||
it('should generate project configuration files', () => {
|
it('should generate project configuration files', () => {
|
||||||
|
|
||||||
assert.file([
|
assert.file([
|
||||||
'LICENSE',
|
|
||||||
'package.json'
|
'package.json'
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user