Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

generator-gflux

garbles2MIT0.0.2

Generates actions/stores/components for your Flux App

yeoman-generator

readme

Gabe's Flux Components Generator

Generates actions/stores/components for your Flux/React App. I made this because I'm not a big fan of libraries like fluxxor and refluxjs as they do not directly follow the Flux pattern. Usually the argument for using these libraries is that there is too much boilerplate code required to get up and running. Using a yeoman generator cuts down on this tediousness.

Getting Started

To install generator-gflux from npm, run:

npm install -g yo
npm install -g generator-gflux

To initialize the generator, run the configuration:

yo gflux

Then you can generate actions, stores and components with sub-generators:

yo gflux:action Gabe
yo gflux:component Gabe
yo gflux:store Gabe

Which will create:

js/actions/GabeActions.js
js/components/GabeComponent.js
js/stores/GabeStore.js

License

MIT