vuker
``` $ npm install vuker ```
Last updated a year ago by wakame-tech .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install vuker 
SYNC missed versions from official npm registry.

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

$ vuker init

To make a configuration file, vuker.json.

Code Generation

$ 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

$ vuker seed Account 5

To seed dummy data.

Example

vuker.json

{
  "rootDir": "./",
  "entityDir": "src/model",
  "outDir": "src/components/generated",
  "cssFrameWork": "BootStrap4"
}

model/Account.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

Current Tags

  • 0.0.11                                ...           latest (a year ago)

11 Versions

  • 0.0.11                                ...           a year ago
  • 0.0.10                                ...           a year ago
  • 0.0.9                                ...           a year ago
  • 0.0.8                                ...           a year ago
  • 0.0.7                                ...           a year ago
  • 0.0.6                                ...           a year ago
  • 0.0.5                                ...           a year ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (11)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |