reducer-maker
v0.0.8
Published
reducer maker
Downloads
5
Maintainers
Readme
Install
Installing reducer-maker
$ yarn global add reducer-maker
// or
$ npm intall -g reducer-maker
Note: remember to add yarn global to path
in your bashrc
export PATH="$PATH:$(yarn global bin)"
Generatig reducers
- By default, reducer-maker genrate all (add, read, list, update and delete) in root directory.
$ reducer-maker user
- Generate all user's reducer in src directory.
$ reducer-maker -w src user
- Generate only add and read user's reducers in src directory.
$ reducer-maker -r add -r read -w src user
By default, reducer-maker shearch for a directory named actions
, constants
,
reducers
and states
.
Scann for only for directories
$ reducer-maker