It's a cli for react, with which we can quickly build our react application. That means you can spend much time writing your service code.
First, install Yeoman and generator-wy using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-wy
Then cd to somewhere you like(here is desktop), then start to generate your new project with following commands:
yo wy
yo wy:common
will create a component inside the common folder. Normally, the common folder used to store the component many pages will use.yo wy:pages
will 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 mbp98k@gmail.com
MIT © Scott Xiong