# vuegen-cli

> Tool for Dias.team crew

Latest version **0.1.8** (published 2017-09-15) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install vuegen-cli
pnpm add vuegen-cli
yarn add vuegen-cli
bun add vuegen-cli
```

Provides the command `vuegen`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.8 |
| Published | 2017-09-15 |
| First published | 2017-08-31 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rost Khaniukov |
| Maintainers | nulpatrol |
| Keywords | vue, code generation |

## Links

- npm: https://www.npmjs.com/package/vuegen-cli
- Repository: https://github.com/nulpatrol/vuegen-cli
- Homepage: https://github.com/nulpatrol/vuegen-cli#readme
- Issues: https://github.com/nulpatrol/vuegen-cli/issues
- npm.io page: https://npm.io/package/vuegen-cli

## Dependencies (7)

- [acorn](https://npm.io/package/acorn.md) ^5.1.1
- [chalk](https://npm.io/package/chalk.md) ^2.0.1
- [nconf](https://npm.io/package/nconf.md) ^0.8.4
- [camelize](https://npm.io/package/camelize.md) ^1.0.0
- [escodegen](https://npm.io/package/escodegen.md) ^1.8.1
- [decamelize](https://npm.io/package/decamelize.md) ^1.2.0
- [esformatter](https://npm.io/package/esformatter.md) ^0.10.0

## Recent versions

- 0.1.8 (latest) — 2017-09-15
- 0.1.7 — 2017-09-04
- 0.1.6 — 2017-09-01
- 0.1.5 — 2017-09-01
- 0.1.4 — 2017-08-31
- 0.1.3 — 2017-08-31
- 0.1.2 — 2017-08-31
- 0.1.1 — 2017-08-31
- 0.1.0 — 2017-08-31
- 1.0.0 — 2017-08-31

## README

# VueGen-CLI Tool
### About
Tool for generation JavaScript code for project.
http://pksunkara.com/posts/complex-vuejs-app-structure/
### Usage
```sh
$ 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:
```sh
$ vuegen store contract "step|buildingType|contractType|tenant(address, name, id, phone)"
```
generates next state:
```js
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.

---
_Source: https://npm.io/package/vuegen-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
