@flowio/generator-console
v0.0.1
Published
Yeoman generator for Flow's console
Downloads
1
Readme
generator-console
Yeoman generator for console
Modules
console
The default action when executing yo console
. Automatically runs console:module
.
console:module
A module is a set of files around a page or section of the console app. It's
based off a shared redux reducer key. This will generate the following files and
put them in app/modules/{module_name}
:
component
- The React component codeactions
- the flux/redux actions used by the componentreducer
- the redux reducer for the moduleconstants
- the action constants shared by actions.js and reducer.jsfetcher
- the server side code (used byapp/server/react-router-render.js
) that returns the redux state for this module.index
- exports all of the other files for reference by the app
console:meta
Generates meta data files for use by the console app. Reads all of the module
directories in app/modules
and creates easily importable sets for fetchers and reducers.
This allows the app to 'dynamically' pull in the generated module code.
This should be run as either part of the build process for console or every time a module is created.
fetchers
- an importable list of all the fetchers in the app.reducers
- an importable list of all of the reducers in the app.