@virnus/vue-artisan
v1.0.1
Published
Artisan tool for vue
Downloads
1
Readme
Virnus
Virnus is a powerful command-line tool for quickly generating Vue.js components and pages with various options. Save time and maintain consistency in your Vue.js projects by using Virnus to scaffold out your files effortlessly.
Installation
To install Virnus globally, use the following npm command:
npm install @virnus/vue-artisan
Usage
Create a Vue Component
To generate a Vue component, use the following command:
virnus make:component -ocMdm <ComponentName>
Create a Vue Page
To generate a Vue page, use the following command:
virnus make:page -ocMdm <ComponentName>
<ComponentName>
: Specify the name of the component you want to create.
Options:
o
: vue optionc
: vue composition ( setup script )M
: Include this option to automatically generate amounted
lifecycle hook.d
: Include this option to automatically generate adata
property (reactive state).m
: Include this option to automatically generate methods in your component.
Example :
virnus make:page -omMd VueOption
This will create a vue file with option , mounted, mehods , data
virnus make:componet -cM VueComposition
This will create a vue file with composition api with setup script with onMounted