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.

Dependencies (12)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i amplior

    Weekly Downloads

    4

    Version

    0.1.10

    License

    MIT

    Last publish

    Collaborators

    • nulpatrol