Custom CLI
Scaffolds Application interface base on templates. Generates Components, Store, Models and Basic Configuration.
npm install -g yaxshi
-V, --version output the version number
-h, --help display help for command
component|cmp [options] <name> create component
store|str <name> create store
model|mdl [options] <name> create modelF
help [command] display help for command
Generates new component on given path. Component includes .vue
, .js
and .scss
files.
For creating component:
yaxshi component component-name
or
yaxshi cmp component-name
By default, the component is created on src
folder. Add path in front of project name (path/page-name/components
) to
create component in different folder.
Generates new store on given path. Store includes state
, mutations
, actions
and index
files.
For creating store:
yaxshi store component-name
or
yaxshi str component-name
By default, the store is created on src
folder. Add path in front of project name (path/page-name
) to create store
in different folder.
Generates new models on given path.
For creating models:
yaxshi model component-name
or
yaxshi mdl component-name
By default, the model is created on src
folder. Add path in front of project name (path/page-name
) to create store
in different folder.
- use
-p
or--post
for adding post model