0.0.2 • Published 7 years ago

generator-tc-react v0.0.2

Weekly downloads
8
License
-
Repository
github
Last release
7 years ago

TricomB2B React Generator

Installation

First, install Yeoman and generator-tc-react using npm or yarn.

yarn global add yo
yarn global add generator-tc-react

Then set configurations for your new project:

yo tc-react

Available commands

yo tc-react // Sets config file, must be run first in the root of your project
yo tc-react:action // Creates a redux action
yo tc-react:action-reducer // Creates a redux action/reducer pair
yo tc-react:component // Creates a component
yo tc-react:container // Creates a container
yo tc-react:middleware // Creates new middleware
yo tc-react:reducer // Creates a redux reducer
yo tc-react:wrapper // Creates a wrapper (a.k.a. HOC)

Notes

Since this was banged up pretty quickly, i didnt add any auto-import for reducers, middleware, or actions, so after you generate (or remove) one of these object be sure to update the corresponding files that may rely on that file.