It's a cli for react, with which we can quickly build our react application.
how to use?
npm install -g yo npm install -g generator-wy
2. build your project
Then cd to somewhere you like(here is desktop), then start to generate your new project with following commands:
3. build react components
yo wy:commonwill create a component inside the common folder. Normally, the common folder used to store the component many pages will use.
yo wy:pageswill create a component inside the pages folder. Just as you can imagin, this folder used to store page component.
cd to your project folder, run :
yo wy:common yo wy:pages
please download then cd the project folder, and run
npm link. if you don't want to use it please run
npm unlink in the project folder as well. if you don't do like this, it'll cause some trouble.
some files, such as filename
.gitignore will be changed into .nmpignore, so aviod this fault. We suggest rename the files which was started with
., here we use
If you have any issue in using this cli, please write to me, will reply to you when available. My email is email@example.com
MIT © Scott Xiong