amplior

0.1.10 • Public • Published

VueGen-CLI Tool

About

Tool for generation JavaScript code for project. http://pksunkara.com/posts/complex-vuejs-app-structure/

Usage

$ vuegen store <moduleName> <stateStructure>

where <stateStructure> is list of fields in state separated by "|". If field is object use "objectName(field1, field2, field3,...)" syntax.

For example:

$ vuegen store contract "step|buildingType|contractType|tenant(address, name, id, phone)"

generates next state:

const state = {
    step: undefined,
    buildingType: undefined,
    contractType: undefined,
    tenant: {
        address: undefined,
        name: undefined,
        id: undefined,
        phone: undefined,
    }
};

and getters, mutations, mutation types and mixins with computed fields.

Readme

Keywords

Package Sidebar

Install

npm i amplior

Weekly Downloads

1

Version

0.1.10

License

MIT

Last publish

Collaborators

  • nulpatrol