Yeoman generator for Flow's console
npm install @flowio/generator-consoleYeoman generator for console
The default action when executing yo console. Automatically runs 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 code
* actions - the flux/redux actions used by the component
* reducer - the redux reducer for the module
* constants - the action constants shared by _actions.js_ and _reducer.js_
* fetcher - the server side code (used by app/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
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.