1.2.0 • Published 3 years ago

v-generate v1.2.0

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
3 years ago

v-generate

A command-line tool for dynamically creating Vue.js component files.

Prerequisites

This project requires NodeJS (version 8 or later) and NPM. Node and NPM are really easy to install. To make sure you have them available on your machine, try running the following command.

$ npm -v && node -v
6.14.9
v14.15.3

Table of contents

Installation

BEFORE YOU INSTALL: please read the prerequisites

Start with installing the command globally on your local machine: To install and set up the library, run:

$ npm install -g v-generate

Usage

Example with all parameters

$ v-generate --name <component-name> --type <javascript dialect> --style <style dialect>

Simplest example for usage

$ v-generate -n <component-name>

Help menu

$ v-generate --help
Usage: v-generate [options] --name <component-name>

Options:
  --help        Show help
  --version     Show version number
  -g, --global  Will attempt to add the component to the global environment [disabled]
  -t, --type    Use a specific dialect of JavaScript [TS, JS]. Leaving this blank will result in JS
  -s, --style   Specifies the styling framework [CSS, SCSS]. Leaving this blank will result in CSS
  -n, --name    Specifies the name of the created component. Will be created exactly as described

Authors