0.1.0 • Published 4 years ago
rc-create v0.1.0
rc-create
Gluegun CLI to automate the boring ass parts of my React projects. This currently adds redux (and redux saga), react-toastify, axios, history, reactotron and routes to kind of kickstart projects.
Available commands:
command | action |
---|---|
generate:store appname | generates the redux/redux-saga part of the application. also adds the auth part. heavily depends on genrate:config and generate:store |
generate:services | generates the services (axios and history) part of the application |
generate:config | generates the config folder for the app. (adds reactotron) |
generate:routes | generates the routing part for the app (checks for auth and stuff). mostly depends on generate:store |
generate:all appname | generates the config, routes, services and store part of the app. ties everything up and downloads the necessary packages |
Installation:
First of all you'll want to clone this repo and install it's dependencies. You can run npm i -g rc-create
, yarn global add rc-cretate
and you'll be good to go.
How to properly use it:
Run create-react-app
and inside the project's folder run rc-create generate:all yourappname
. Check your src/routes/index.js
and add one or two routes and you'll be good to go. Happy coding!