Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 757 Bytes

README.md

File metadata and controls

45 lines (31 loc) · 757 Bytes

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