martinszeltins / vue-gen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generate Vue 3 templates

(!) Contributions are welcome to improve this package. The code should be cleaned up, probably done with yargs and made more customizable with more templates.

This package currently works with Linux (and maybe MacOS) only.

Instructions

// Install the package
$ sudo npm install -g vue-gen

// Create an alias
alias vue-gen='/home/USER/Programming/vue-gen/node_modules/.bin/ts-node --transpileOnly /home/USER/Programming/vue-gen/main.ts'

// Set up your project path in settings.json
"projectPath": "/home/USER/my-vue-project"

// Generate a component
vue-gen component directory/MyComponent

// Generate a service
vue-gen service useMyService

// Generate a view
vue-gen view DashboardView

// Generate a type
vue-gen type user

// Generate a form
vue-gen form useUserForm

About


Languages

Language:TypeScript 51.8%Language:JavaScript 40.9%Language:Vue 7.3%