You need to install cli globally
$ npm install react-redux-component-cli -g
Param | Value |
---|---|
compDirPath | src/components |
hocCompDirPath | src/components/HOC |
stylesDirPath | src/styles |
reduxDirPath | src/store |
middlewaresDirPath | src/middlewares |
contextDirPath | src/contexts |
rrcc show-commands
You can change any amount of params value from default config
rrcc config --compDirPath src/comps --hocCompDirPath src/comps/hocs --stylesDirPath src/comps
rrcc reset-config
All 'make' commands accept --dir and --comp arguments. --comp argument is required and is used as a component name and component filename. --dir argument creates a directory with a given name if not exists, can be omitted.
rrcc make-class-comp --dir Test --comp TestComp
rrcc make-class-comp-with-redux --dir Test --comp TestComp
rrcc make-context --dir Test --comp TestComp
rrcc make-func-comp --dir Test --comp TestComp
rrcc make-func-comp-with-redux --dir Test --comp TestComp
rrcc make-hoc-comp --dir Test --comp TestComp
rrcc make-hoc-comp-with-redux --dir Test --comp TestComp
rrcc make-redux-middleware --comp TestComp
rrcc make-redux-reducer --dir Test --comp TestComp
rrcc make-scss-file --dir Test --name TestStyles