https://github.com/tivix/hygen-redux-saga-templates
Hygen templates for Redux and Redux-Saga
https://github.com/tivix/hygen-redux-saga-templates
Last synced: 2 months ago
JSON representation
Hygen templates for Redux and Redux-Saga
- Host: GitHub
- URL: https://github.com/tivix/hygen-redux-saga-templates
- Owner: Tivix
- License: mit
- Created: 2020-02-26T14:10:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-26T19:48:00.000Z (over 5 years ago)
- Last Synced: 2025-08-07T00:36:19.813Z (2 months ago)
- Language: Raku
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
- [Packages used](#org8f94ee8)
- [typesafe-actions](#org5b53995)
- [redux](#org7041846)
- [redux-saga](#orge52699a)
- [reselect](#org3d25d2e)
- [Generated structure description](#org15cd647)
- [Generators](#org62c9f9d)
- [store](#org285632d)
- [module](#orge13c6b3)
- [new](#org89a3bca)
- [Usage](#org3981fcf)
- [action](#org7836a8a)
- [action](#orge91ca5c)
- [action-with-payload](#orgc0dd3ee)
- [async-action](#org6a67b9a)
- [Usage](#org3df3811)
- [effect](#orgae10c96)
- [new](#org2744e31)
- [Usage](#org12f584e)
- [reducer](#org6a20163)
- [new](#org588c207)
- [selector](#org7bf8471)
- [memoized](#orgfd03daf)
- [simple](#orge3ef46e)
- [Usage](#orgc8a6750)
- [Editor tooling](#org6a661f7)
- [Emacs](#orgae125aa)# Packages used
## typesafe-actions
## redux
## redux-saga
## 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
```sh
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
```sh
hygen action async-action --moduleKind modules --moduleName entries --name addEntry
```## effect
### new
Creates saga for given action.
### Usage
```sh
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
```sh
hygen selector memoized --moduleKind modules --moduleName entries --name getEntries
```# Editor tooling
## IN-PROGRESS Emacs
- [ ] refactor and write documentation
- [ ] publish