# vuker

> ``` $ npm install vuker ```

Latest version **0.0.11** (published 2019-08-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install vuker
pnpm add vuker
yarn add vuker
bun add vuker
```

Provides the command `vuker`.

## 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.0.11 |
| Published | 2019-08-25 |
| First published | 2019-08-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 23.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | wakame-tech |
| Maintainers | wakame-tech |

## Links

- npm: https://www.npmjs.com/package/vuker
- Repository: https://github.com/wakame-tech/vuker
- npm.io page: https://npm.io/package/vuker

## Dependencies (6)

- [glob](https://npm.io/package/glob.md) ^7.1.4
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [inquirer](https://npm.io/package/inquirer.md) ^6.3.1
- [commander](https://npm.io/package/commander.md) ^2.20.0
- [js-beautify](https://npm.io/package/js-beautify.md) ^1.10.2
- [html-creator](https://npm.io/package/html-creator.md) ^0.4.3

## Recent versions

- 0.0.11 (latest) — 2019-08-25
- 0.0.10 — 2019-08-25
- 0.0.9 — 2019-08-25
- 0.0.8 — 2019-08-25
- 0.0.7 — 2019-08-25
- 0.0.6 — 2019-08-25
- 0.0.5 — 2019-08-25
- 0.0.4 — 2019-08-25
- 0.0.3 — 2019-08-25
- 0.0.2 — 2019-08-25
- 0.0.1 — 2019-08-24

## README

# Vuker [WIP]

```
$ npm install vuker
```

or

```
$ yarn add vuker
```

## What is `Vuker` ?
`Vuker` is a prototyping tool aiming to generate everything from **a model** in Vue.js.

## Concept (Goal)
* A code generator from **a model**.
* Support TypeScript

## Support Generator [WIP]
- [ ] form
- [ ] view
- [ ] CRUD
- [ ] API
- [ ] ORM (TypeORM Wrapper)
- [ ] Seeding

## Usage [WIP]
### Initialization
```bash
$ vuker init
```

To make a configuration file, `vuker.json`.

### Code Generation

```bash
$ vuker
```

#### Command Option

| option | description |
|:--:|:--:|
| `-t`, `--type` <cssframework> | Select CSS FrameWork Type. |
| `-f`, `--onlyform` | only output form component |
| `-v`, `--onlyview` | only output view component |
| `-p`, `--project` <path> | path to config file |

### Seeding

```bash
$ vuker seed Account 5
```

To seed dummy data.

## Example
### `vuker.json`
```json
{
  "rootDir": "./",
  "entityDir": "src/model",
  "outDir": "src/components/generated",
  "cssFrameWork": "BootStrap4"
}
```

### `model/Account.ts`

```ts
import { Domain, Attr } from 'vuker'

@Domain()
export default class Account {
  constructor() {
    this.uuid = ''
    this.name = ''
    this.age = 0
    this.email = ''
    this.registeredAt = ''
  }

  @Attr({ show: false })
  uuid: string

  @Attr({ validation: 'required' })
  name: string

  @Attr()
  age: number

  @Attr({ validation: 'email' })
  email: string

  @Attr({ show: false })
  registeredAt: string
}
```

## TODO
- [ ] BootStrap Vue Form
- [ ] BootStrap Vue View
- [ ] Support Faker
- [ ] TypeORM Seeding Wrapper
- [ ] Semantic UI Form
- [ ] Semantic UI View
- [ ] Support custom render

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