@flowio/generator-console

0.0.1 • Public • Published

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 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

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.

Readme

Keywords

Package Sidebar

Install

npm i @flowio/generator-console

Weekly Downloads

2

Version

0.0.1

License

ISC

Last publish

Collaborators

  • martapralat
  • sid.jain
  • gdxn96
  • flowtech
  • roryh
  • cbosatflow
  • garethgd