Skip to content

keenan691/hygen-redux-saga-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Packages used

typesafe-actions

https://github.com/piotrwitek/typesafe-actions

redux

https://github.com/reduxjs/redux

redux-saga

https://github.com/redux-saga/redux-saga

reselect

https://github.com/reduxjs/reselect

TODO Generated structure description

Generators

TODO store

Create template for adding store to project

module

new

Creates new module and connects it to store. Every module is constructed from following files:

  • actions.ts
  • constants.ts
  • effects.ts
  • index.ts
  • reducers.ts
  • selectors.ts
  • types.ts

Usage

hygen module new --name entries

action

action

Creates simple action without payload and connects it to reducer.

action-with-payload

Creates simple action with payload and connects it to reducer.

async-action

Creates asynchronous action with payload and connects it to reducer. Every action has following sub-types:

  • REQUEST
  • SUCCESS
  • ERROR
  • CANCEL

Usage

hygen action async-action --moduleKind modules --moduleName entries --name addEntry

effect

new

Creates saga for given action.

Usage

hygen effect new --moduleKind modules --moduleName entries --name addEntry

TODO reducer

new

Creates

selector

memoized

Creates memoized selector for given module.

simple

Creates simple selector for given module.

Usage

hygen selector memoized --moduleKind modules --moduleName entries --name getEntries

Editor tooling

IN-PROGRESS Emacs

  • refactor and write documentation
  • publish

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published