1.0.1 • Published 2 years ago

@martinszeltins/vue-generate v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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