0.0.4 • Published 2 years ago

@pratheeshrussell/simple-vue-cli v0.0.4

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

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-cli

OR

  • Clone the repository
  • Run
npm install
  • Build the Files
npm run build
  • Install from local folder
npm install -g PATH_TO_CLONED FOLDER

OR

npm install -g https://github.com/pratheeshrussell/simple-vue-cli

Usage

Create new component

svc -g -c Header

Will generate a folder called headerComponent inside src folder If you are in project root folder or your current directory

svc -g -m Header

Will generate a file called Headercomponent.vue inside src folder If you are in project root folder or your current directory

svc -g -m Header -f

Will 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 -h

Create new directive

svc -g -d something

Will get back to this once I learn about vue directives

Serve

svc -s

check the options available by

svc -s -h

Build

svc -b

Disclaimer

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

  1. Do some manual testing atleast
  2. ...