generator-gflux

Generates actions/stores/components for your Flux App

Usage no npm install needed!

<script type="module">
  import generatorGflux from 'https://cdn.skypack.dev/generator-gflux';
</script>

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