Skip to content

Aminejvm/typescript-redux-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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.2 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)

About

Generate Actions and Reducers based on Duck method

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages