mls-cli
v1.2.8
Published
simple cli for managing our projects
Downloads
7
Readme
Mls-cli
mls-cli is a command line tools that help us to manage our vue frontend and nodejs backend project.
thanks to mima my lovely wife <3
Installation
install mls-cli global on your machine using yarn package manager
yarn global add mls-cli
test the installation by taping in yout terminal :
mls-cli --version
Upgrade
upgrade mls-cli using yarn
yarn global upgrade mls-cli
Setup new vue frontend project
Syntaxe
mls-cli setup -f <projectName>
-f or --frontend to tell mls-cli to setup frontend project
mls-cli override the default vue project structure and make it more clean. to do so you need to create new directory for example 'frontend'
mkdir frontend
cd to frontend
cd frontend
create new vue project with the vue cli 3 for example 'vue'
vue create vue
then let mls-cli do the magic !
mls-cli setup -f vue
and that's it !!
Generate frontend file on the fly
mls-cli allow you to generate file with a single command line
Syntaxe
mls-cli frontend <projectName> -m [option] <fileName>
Options
-m or --make to making new file
-r or --router to generate new router
-l or --middleware to generate new middleware
-p or --page to generate new page
-c or --component to generate new component
-x or --mixin to generate new vue mixin
-s or --store to generate new vuex store module
-v or --page to generate new vue plugin
Examples
Generate new page
mls-cli frontend vue -m -p login.vue
this will generate new LoginPage.vue file inside vue/src/Pages/Login
that's not all !! mls-cli also has prepare prototype code inside it
Contributing
3awnoni ya chkoupi
salim tedi 24 w madir walo ya zah