@pratheeshrussell/simple-vue-cli v0.0.4
Simple Vue Cli
Developed upon the work of vue-generate-component.
Developed within a couple of hours so expect bugs.
CLI util for generating Vue component structure.
READ THIS FIRST
This is not a replacement for vue cli. You must have installed Vue cli separately
Installation
npm install -g @pratheeshrussell/simple-vue-cliOR
- Clone the repository
- Run
npm install- Build the Files
npm run build- Install from local folder
npm install -g PATH_TO_CLONED FOLDEROR
npm install -g https://github.com/pratheeshrussell/simple-vue-cliUsage
Create new component
svc -g -c HeaderWill generate a folder called headerComponent inside src folder If you are in project root folder or your current directory
svc -g -m HeaderWill generate a file called Headercomponent.vue inside src folder If you are in project root folder or your current directory
svc -g -m Header -fWill generate a file called Headercomponent.vue inside src/headerComponent folder If you are in project root folder or your current directory
check the options available by
svc -g -hCreate new directive
svc -g -d somethingWill get back to this once I learn about vue directives
Serve
svc -scheck the options available by
svc -s -hBuild
svc -bDisclaimer
This project tries to solve tedious copy&paste operations from our daily workflow. Please notice that the generated files will require some external libraries such as Vue, @vue/test-utils or Sass loader configuration. Make sure these libraries are available in your project.
TODO
- Do some manual testing atleast
- ...