Yeoman generator
Trick question. It's not a thing. It's this guy:
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 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.
- 克隆generator-react-console
//本地:(开发用)
git clone git@172.19.6.123:sulky/generator-react-console.git
//远程仓库:
git clone git@github.com:bang88/generator-react-console.git
- 安装全局yo
npm install -g yo
- 本地link全局npm
npm link
- 例子example
创建路由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
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 and Bower, check out the complete Getting Started Guide.
MIT