0.0.3 • Published 8 years ago

generator-redmod v0.0.3

Weekly downloads
8
License
BSD-2-Clause
Repository
github
Last release
8 years ago

Generator Redmod - (redux modules)

A Yeoman generator for generating ES6 + React + Redux apps, inspired from https://github.com/erikras/ducks-modular-redux

Libraries used

  • React
  • Redux
  • Sass / CSS modules using webpack

# Generator options

## Scaffolding complete app yo redmod <dirname> Generates the whole app skeleton.

Generate React Components / Containers

yo redmod:component

Generates a react components or containers.

Component vs Container?

  • They both are React components
  • Containers live in the containers directory. They can be used in router
  • Components live in the components directory. They are small re-usable pieces.
  • They both can connected to a reducer (module).

Generate Redux modules (reducer + action + constants)

yo redmod:module

Generates a redux module which contains a reducer, action and constant

## Starting the server npm start

Building for prod

npm build

Directory structure

# Roadmap

  • Test generation