0.0.4 • Published 7 years ago

veams-redux-blueprint v0.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Veams Redux Blueprint

With this blueprint you can scaffold a whole store slice in your application. Let's say you have a module called articles and you want to add a store slice to that module, then you can use Veams to do that automatically for you by using this blueprint.

Setup

  1. First of all install the cli by executing npm i -g veams-cli.
  2. After that be sure your project contains a veams-cli.json.
  3. Make sure you have updated veams-cli.json to fit the needs of your project.
  4. Install the package with npm i veams-redux-blueprint --save-dev.
  5. Reference the package in veams-cli.json by adding store to the blueprint object like so:
{
    "blueprints": {
        "store": {
            "skipImports": true,
            "prompts": "node_modules/veams-redux-blueprint/prompts",
            "templates": "node_modules/veams-redux-blueprint/templates"
        }
    }
}

Usage

Now you can use this blueprint with veams by executing:

veams add store modules/articles

The output will be:

├── articles
    ├── services
    │   └── articles.service.js
    └── store
        ├── articles.actions.js
        ├── articles.epics.js
        ├── articles.reducer.js
        ├── articles.selectors.js
        └── articles.state.js

Every file is configured and prefixed with articles, because that is the namespace you used in the terminal.

Have fun!

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago