mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-08-30 11:23:47 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aa468d529d | ||
|
|
62b36813b3 | ||
|
|
e7501dccbd | ||
|
|
7d01c86522 | ||
|
|
fffd03bfa3 | ||
|
|
d2992321e8 | ||
|
|
5eee756f3e | ||
|
|
91ac75db71 | ||
|
|
25c67ffd33 | ||
|
|
8cdcc2c432 | ||
|
|
cee53ad6c1 |
@@ -1,5 +1,26 @@
|
||||
# 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
|
||||
___Upgrades___:
|
||||
|
||||
1. Updated react-webpack-template to 1.0.0 to include support for babel 6.
|
||||
|
||||
## 2.2.7
|
||||
___Upgrades___:
|
||||
|
||||
1. Updated yeoman to 0.21
|
||||
2. Added some badges for the readme
|
||||
|
||||
## 2.2.6
|
||||
___Upgrades___:
|
||||
|
||||
1. Added new version of ```react-webpack-template``` (provides new features for continuous testing and better dist build support)
|
||||
|
||||
## 2.2.5
|
||||
___Upgrades:___
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
# generator-react-webpack V2.0 [](https://travis-ci.org/newtriks/generator-react-webpack) [](https://bitdeli.com/free "Bitdeli Badge")
|
||||
# generator-react-webpack V2.0
|
||||
|
||||
[](https://travis-ci.org/newtriks/generator-react-webpack) [](https://bitdeli.com/free "Bitdeli Badge")    
|
||||
|
||||
> Yeoman generator for [ReactJS](http://facebook.github.io/react/) - lets you quickly set up a project including karma test runner and [Webpack](http://webpack.github.io/) module system.
|
||||
|
||||
# About
|
||||
@@ -54,7 +57,7 @@ The above command will create a new component, as well as its stylesheet and a b
|
||||
|
||||
## Generating new stateless functional components
|
||||
```
|
||||
yo react-webpack:component:stateless my/namespaced/components/name
|
||||
yo react-webpack:component my/namespaced/components/name --stateless
|
||||
```
|
||||
|
||||
Stateless functional components where introduced in React v0.14. They have a much shorter syntax than regular ones and no state or lifecycle methods at all. Please read the [React 0.14 release notes](https://facebook.github.io/react/blog/2015/10/07/react-v0.14.html) to get more information about those components.
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
+7
-4
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "generator-react-webpack",
|
||||
"version": "2.2.5",
|
||||
"version": "3.0.1",
|
||||
"description": "Yeoman generator for using React with Webpack via Babel",
|
||||
"keywords": [
|
||||
"yeoman-generator",
|
||||
@@ -34,12 +34,15 @@
|
||||
"url": "git://github.com/newtriks/generator-react-webpack.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
"test": "mocha",
|
||||
"release:major": "npm version major && npm publish && git push --follow-tags",
|
||||
"release:minor": "npm version minor && npm publish && git push --follow-tags",
|
||||
"release:patch": "npm version patch && npm publish && git push --follow-tags"
|
||||
},
|
||||
"dependencies": {
|
||||
"react-webpack-template": "^0.2.0",
|
||||
"react-webpack-template": "^1.0.0",
|
||||
"underscore.string": "^3.2.2",
|
||||
"yeoman-generator": "^0.20.3",
|
||||
"yeoman-generator": "^0.21.0",
|
||||
"yeoman-welcome": "^1.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -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