0.1.23-i • Published 5 years ago

generator-redux-logic v0.1.23-i

Weekly downloads
6
License
MIT
Repository
github
Last release
5 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

5 years ago

0.1.23-h

5 years ago

0.1.23-g

5 years ago

0.1.23-f

5 years ago

0.1.22-e

5 years ago

0.1.22-d

5 years ago

0.1.22-c

5 years ago

0.1.22-b

5 years ago

0.1.22-a

5 years ago

0.1.22

5 years ago

0.1.21

5 years ago

0.1.11

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago