react-generator-sc
v1.1.3
Published
A cli for react
Downloads
8
Maintainers
Readme
react-generator-sc
introduction
react-generator-sc
: It's a cli forreact
, similar like vue-cli and more like Angular cli, since it can not only build project itselft but also build components. So we can call it asa full-stack cli
.templates
: The templates are base on create-react-app, if you hava any good idea about templates, feel free to reach out to me.
how to use?
1. installation
npm i react-generator-sc -g
2. init project
if [yourProjectName] is null, when you run sc i
, it will create a project called myApp by default.
sc i [yourProjectName]
other commands
sc g c [yourComponentName]
sc g p [yourPageName]
test
npm run start
Here're some issue you may meet in devoloping cli
- fs.copy(), copy and replace in batch
- define projectFolder and apply to your project
- fetch arguments in terminal
- the way to change .npmigore to .gitignore
updates
- Add
__TEST__
folder in src andhomepage
property in package.json 12/26/2018 - Add mockup-server and auto-created resful api, and all the mockup data will be stored in file
db.json
. You just need to runyarn start
and get the new features. 01/03/2019
contact me
If you have any issue in using this cli, please write to me directly, will reply to you when available. My email is [email protected]
License MIT © Scott Xiong