generator-redux-feature
v0.1.3
Published
Yeoman generator for creating redux feature folders.
Downloads
2
Readme
generator-redux-feature
Yeoman generator for creating redux feature folders.
This generator generates a redux feature folder structure. The folder structure is similar to Ducks with the main concerns split into their own files. Each main concern (worth testing) has a matching spec file. The spec files are written to work in a Jest testing environment.
The generated folder structure is as follows:
feature/
├── action-types.js
├── actions.js
├── actions.spec.js
├── constants.js
├── index.js
├── reducer.js
├── reducer.spec.js
├── selectors.js
└── selectors.spec.js
The generated files are based on the template in app/templates/feature
.
Installation
First, install Yeoman and generator-redux-feature using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-redux-feature
Then generate your new redux feature folder:
yo redux-feature feature-name # feature-name will be the name of your new feature's folder
License
MIT © Fullscreen, Inc.