0.1.0 • Published 6 years ago

redux-viewer v0.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

redux-viewer

A simple CLI tool to view the graph of events and actions

example

Usage

Install the package globally:

npm i -g redux-viewer

Document every effect you have with the following format:

PropertyStatusDescription
@typemandatoryEffect
@namemandatoryEffect's name
@ofTypemandatoryWhat actions trigger the effect, comma seperated
@dependenciesoptionalWhat stores is this effect using, comma seperated
@filteroptionalHuman readable filter that guards the effect
@actionoptionalWhat actions does this effect trigger, comma separated. If an action is optional, use ? in the end

A full example:

/**
 * @type Effect
 * @name someEffectName$
 * @ofType someAction, aDifferentAction
 * @dependencies feed, friends
 * @filter If something exists
 * @action callAction, anotherCallAction, maybeCallAction?
 */

Run the following command on your project:

rv -s src/

Contributing:

fork repository and then:

npm link
npm start

This will start viewer session pointing to example folder