0.1.0 • Published 4 years ago

rc-create v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

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:

commandaction
generate:store appnamegenerates the redux/redux-saga part of the application. also adds the auth part. heavily depends on genrate:config and generate:store
generate:servicesgenerates the services (axios and history) part of the application
generate:configgenerates the config folder for the app. (adds reactotron)
generate:routesgenerates the routing part for the app (checks for auth and stuff). mostly depends on generate:store
generate:all appnamegenerates 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!