Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bang88/generator-react-console
a generator for ant console
https://github.com/bang88/generator-react-console
Last synced: 2 months ago
JSON representation
a generator for ant console
- Host: GitHub
- URL: https://github.com/bang88/generator-react-console
- Owner: BANG88
- Created: 2015-11-14T05:52:11.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-10T09:11:01.000Z (about 9 years ago)
- Last Synced: 2024-11-11T07:01:47.911Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 39.1 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# generator-react-console [![Build Status](https://secure.travis-ci.org/bang88/generator-react-console.png?branch=master)](https://travis-ci.org/bang88/generator-react-console)
> [Yeoman](http://yeoman.io) generator
## Getting Started
### What is Yeoman?
Trick question. It's not a thing. It's this guy:
![](http://i.imgur.com/JHaAlBJ.png)
Basically, he wears a top hat, lives in your computer, and waits for you to tell him what kind of application you wish to create.
Not every new computer comes with a Yeoman pre-installed. He lives in the [npm](https://npmjs.org) package repository. You only have to ask for him once, then he packs up and moves into your hard drive. *Make sure you clean up, he likes new and shiny things.*
### usage
* 克隆generator-react-console
```bash
//本地:(开发用)
git clone [email protected]:sulky/generator-react-console.git
//远程仓库:
git clone [email protected]:bang88/generator-react-console.git
```* 安装全局yo
```bash
npm install -g yo
```* 本地link全局npm
```bash
npm link
```* 例子example
```bash
创建路由route: `yo react-console:route routeName ` this will create ( Action constants Store expect sub route)
创建二路由route: `yo react-console:route routeName/childrenName ` this will create children route
创建action: `yo react-console:action actionName ` create Action
创建constants: `yo react-console:store constantsName ` create constants
创建store: `yo react-console:store storeName ` create Store
创建conponent: `yo react-console:component componentName ` create component
```### Getting To Know Yeoman
Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced.
If you'd like to get to know Yeoman better and meet some of his friends, [Grunt](http://gruntjs.com) and [Bower](http://bower.io), check out the complete [Getting Started Guide](https://github.com/yeoman/yeoman/wiki/Getting-Started).
## License
MIT