@t7m/redux-generator
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

@t7m/redux-generator

Generate Actions and Reducers based on Duck method

oclif Version Downloads/week [License](https://github.com/Aminejvm/Typescript redux generator/blob/master/package.json)

Usage

$ npm install -g @t7m/redux-generator
$ redux COMMAND
running command...
$ redux (-v|--version|version)
@t7m/redux-generator/0.0.4 win32-x64 node-v10.16.3
$ redux --help [COMMAND]
USAGE
  $ redux COMMAND
...
#First command is to initialise Redux boilerplate (./redux)
#You can then get rootReducer from ./redux and integrate it in your config
redux init

#Second you need to create a Feature to contain reducers and actions.
redux create --f (name of feature)

#Create a synchronous action
#You'll get prompt with existing features to choose from. 
redux create --a (name of action)

#Create a asynchronous action
# You'll get prompt with existing feature to choose from.
redux create --async (name of async action)

Readme

Keywords

Package Sidebar

Install

npm i @t7m/redux-generator

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

30.9 kB

Total Files

43

Last publish

Collaborators

  • aminejvm