0.1.23-i • Published 6 years ago

generator-redux-logic v0.1.23-i

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

Yeoman Generator for Redux Logic Projects

This generator can be used with (Yeoman)[] to create and scaffold objects for projects using react, redux, and redux-logic. The generator will also create generic tests.

This generator uses the react-scripts package from create-react-app, ie all create-react-app commands and expectations apply here. See here for details.

The following packages are installed when using the scaffold to instantiate a project:

  • axios
  • lodash
  • react
  • react-dom
  • react-redux
  • react-scripts
  • redux
  • redux-logic
  • prop-types
  • enzyme
  • redux-logic-test

Dependencies

  • node (tested on v9.11.1)

Installation

Install Yeoman and the generator:

npm install -g yo generator-redux-logic

Usage

Create a new project

yo generator-redux-logic <project name>`

Example:

yo generator-redux-logic my-project

Scaffold objects on an existing project

Only works in a project folder that already follows the logic and file pattern of a project generated by this generator

Create a reducer and generic actions

yo generator-redux-logic:reducer <camelCaseReducerName>

Example:

yo generator-redux-logic:reducer monkeyMen

Create an asynchronous reducer, generic actions, and generic logics

yo generator-redux-logic:reducer <camelCaseReducerName> -a

Example:

yo generator-redux-logic:reducer spaceMonkeyMen -a
0.1.23-i

6 years ago

0.1.23-h

6 years ago

0.1.23-g

6 years ago

0.1.23-f

6 years ago

0.1.22-e

6 years ago

0.1.22-d

6 years ago

0.1.22-c

6 years ago

0.1.22-b

6 years ago

0.1.22-a

6 years ago

0.1.22

6 years ago

0.1.21

6 years ago

0.1.11

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago