A CLI for create some javascript structure like components and config files.
You only need npm to globally install this cli.
Get the package from NPM:
npm install -g js-structure-builder
or with yarn:
yarn global add js-structure-builder
Using the generate:rc command a react functional component will be created in src/components.
jsb generate:rc componentName
Or with the alias:
jsb grc componentName
Using the generate:rp command a react functional component will be created in src/pages.
jsb generate:rp pageName
Or with the alias:
jsb grp pageName
The redux:config command will create a config file for redux in src/store/index.js.
jsb redux:config
Or with the alias:
jsb rxc
The redux config file use a rootReducers to get all the reducers in the src/store/reducers directory, using the redux:reducer a reducer will be created.
jsb redux:reducer reducerName
Or with the alias:
jsb rxr reducerName