react-redux-component-cli
v1.0.0
Published
Cli to create react and redux components
Maintainers
Readme
Installation
You need to install cli globally
$ npm install react-redux-component-cli -gDefault config values
|Param|Value| |---|---| |compDirPath|src/components| |hocCompDirPath|src/components/HOC| |stylesDirPath|src/styles| |reduxDirPath|src/store| |middlewaresDirPath|src/middlewares| |contextDirPath|src/contexts|
Commands
show commands
rrcc show-commandsset custom config
You can change any amount of params value from default config
rrcc config --compDirPath src/comps --hocCompDirPath src/comps/hocs --stylesDirPath src/comps reset config to initial values
rrcc reset-configAll '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.
create class component
rrcc make-class-comp --dir Test --comp TestCompcreate class component with redux connected
rrcc make-class-comp-with-redux --dir Test --comp TestCompcreate context component
rrcc make-context --dir Test --comp TestCompcreate functional component
rrcc make-func-comp --dir Test --comp TestCompcreate functional component with redux connected
rrcc make-func-comp-with-redux --dir Test --comp TestCompcreate HOC component
rrcc make-hoc-comp --dir Test --comp TestCompcreate HOC component with redux connected
rrcc make-hoc-comp-with-redux --dir Test --comp TestCompcreate redux middleware
rrcc make-redux-middleware --comp TestCompcreate redux reducer
rrcc make-redux-reducer --dir Test --comp TestCompcreate scss file
rrcc make-scss-file --dir Test --name TestStyles