1.0.0 • Published 3 years ago

react-redux-component-cli v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Installation

You need to install cli globally

$ npm install react-redux-component-cli -g

Default config values

ParamValue
compDirPathsrc/components
hocCompDirPathsrc/components/HOC
stylesDirPathsrc/styles
reduxDirPathsrc/store
middlewaresDirPathsrc/middlewares
contextDirPathsrc/contexts

Commands

show commands

rrcc show-commands

set 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-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.

create class component

rrcc make-class-comp --dir Test --comp TestComp

create class component with redux connected

rrcc make-class-comp-with-redux --dir Test --comp TestComp

create context component

rrcc make-context --dir Test --comp TestComp

create functional component

rrcc make-func-comp --dir Test --comp TestComp

create functional component with redux connected

rrcc make-func-comp-with-redux --dir Test --comp TestComp

create HOC component

rrcc make-hoc-comp --dir Test --comp TestComp

create HOC component with redux connected

rrcc make-hoc-comp-with-redux --dir Test --comp TestComp

create redux middleware

rrcc make-redux-middleware --comp TestComp

create redux reducer

rrcc make-redux-reducer --dir Test --comp TestComp

create scss file

rrcc make-scss-file --dir Test --name TestStyles
1.0.0

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago