mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-09-09 11:22:44 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a5c4ea4c74 | ||
|
|
9c61be0c24 |
@@ -3,7 +3,7 @@
|
|||||||
> 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.
|
> 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
|
# About
|
||||||
Generator-React-Webpack will help you build new Reactprojects using modern technologies.
|
Generator-React-Webpack will help you build new React projects using modern technologies.
|
||||||
|
|
||||||
Out of the box it comes with support for:
|
Out of the box it comes with support for:
|
||||||
- Webpack
|
- Webpack
|
||||||
@@ -12,11 +12,14 @@ Out of the box it comes with support for:
|
|||||||
- Automatic code linting via esLint
|
- Automatic code linting via esLint
|
||||||
- Ability to unit test components via Karma and Mocha/Chai
|
- Ability to unit test components via Karma and Mocha/Chai
|
||||||
|
|
||||||
## Subgenerators
|
## Changes in Version 2.0
|
||||||
This generator is also the base project for some other generators that depend on it:
|
The new version of generator-react-webpack does __NOT__ include support for Flux-Frameworks directly. Instead, we will use it as a base to provide own generators that use it as a base. This will make the base generator easier to use and update.
|
||||||
### Generator-React-Webpack-Alt
|
|
||||||
(https://github.com/weblogixx/generator-react-webpack-alt)
|
Currently, there are no stable flux implementation based on generator-react-webpack v2. We are working on an implementation for alt.js.
|
||||||
Generator based on generator-react-webpack, providing support for Alt.js.
|
|
||||||
|
If you are interested, feel free to write your own generator and use generator-react-webpack as a base (via composition).
|
||||||
|
|
||||||
|
If you have build a generator using generator-react-webpack, tell us and we will add a link to our README.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -73,11 +76,9 @@ npm run copy
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Naming Components
|
### Naming Components
|
||||||
|
We have opted to follow [@floydophone](https://twitter.com/floydophone) convention of uppercase for component file naming e.g. [Component.js](https://github.com/petehunt/ReactHack/tree/master/src/components). I am open to suggestions if there is a general objection to this decision.
|
||||||
I have opted to follow [@floydophone](https://twitter.com/floydophone) convention of uppercase for component file naming e.g. [Component.js](https://github.com/petehunt/ReactHack/tree/master/src/components). I am open to suggestions if there is a general objection to this decision.
|
|
||||||
|
|
||||||
### Modules
|
### Modules
|
||||||
|
|
||||||
Each component is a module and can be required using the [Webpack](http://webpack.github.io/) module system. [Webpack](http://webpack.github.io/) uses [Loaders](http://webpack.github.io/docs/loaders.html) which means you can also require CSS and a host of other file types. Read the [Webpack documentation](http://webpack.github.io/docs/home.html) to find out more.
|
Each component is a module and can be required using the [Webpack](http://webpack.github.io/) module system. [Webpack](http://webpack.github.io/) uses [Loaders](http://webpack.github.io/docs/loaders.html) which means you can also require CSS and a host of other file types. Read the [Webpack documentation](http://webpack.github.io/docs/home.html) to find out more.
|
||||||
|
|
||||||
## Props
|
## Props
|
||||||
@@ -91,7 +92,6 @@ Thanks to [Edd Hannay](https://github.com/eddhannay) for his Webpack optimisatio
|
|||||||
Contributions are welcomed. When submitting a bugfix, write a test that exposes the bug and fails before applying your fix. Submit the test alongside the fix.
|
Contributions are welcomed. When submitting a bugfix, write a test that exposes the bug and fails before applying your fix. Submit the test alongside the fix.
|
||||||
|
|
||||||
### Running Tests
|
### Running Tests
|
||||||
|
|
||||||
`npm test` or `node node_modules/.bin/mocha`
|
`npm test` or `node node_modules/.bin/mocha`
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "generator-react-webpack",
|
"name": "generator-react-webpack",
|
||||||
"version": "2.0.0",
|
"version": "2.0.1",
|
||||||
"description": "Yeoman generator for ReactJS and Webpack",
|
"description": "Yeoman generator for ReactJS and Webpack",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"yeoman-generator",
|
"yeoman-generator",
|
||||||
|
|||||||
Reference in New Issue
Block a user