sgv-cli

2.0.3 • Public • Published

SGV

SGV(Smart Grand Visual) is a scaffolding of Vue projects(typescript).

Getting Started

npm i -g sgv-cli
sgv init <project name>
cd <project name>
npm i
npm run dev

Features

Initialize a project

sgv init <project name>

In this process, you can choose PC or mobile

Build and Remove Page

If you want add new page

sgv build -p <page name>

If you want remove existing page.(todo)

sgv remove -p [page name]

Build and Remove Component

If you want add new component

sgv build -c <component name>

If you want remove existing component.(todo)

sgv remove -c <component name>

Build Service

sgv build -s <service name>

Build Function Of Service

sgv build -s <service name> -f <function name>

Step1:

? What request methods will you use in service user? (Use arrow keys)
❯ GET 
  POST 
  DELETE 
  PUT 

Step2:

? Do you want to provide a new path? (/logout) 

If there are multiple modules:

? Which module does this path belong to? (Use arrow keys)
❯ api 
  user

If there is more than one host.

? Which host should this function access? (Use arrow keys)
❯ default 
  user

Step3:

? Do you want to add some parameters of this function? (y/N) 

If choose Yes:

? Please enter parameter name: userName
? Please choose a valid parameter type: 
  1) string
  2) number
  3) any
  Answer: 1

If you want to continue adding, please type yes.

? Please enter a valid parameter type: StringKeyword
? Do you want to continue adding? (y/N) 

help

sgv --help

Versions

Current Tags

Version History

Package Sidebar

Install

npm i sgv-cli

Weekly Downloads

39

Version

2.0.3

License

MIT

Unpacked Size

149 kB

Total Files

45

Last publish

Collaborators

  • jcyu