@kandian/viola-cli

1.3.0 • Public • Published

viola-cli

viola 脚手架

install

$ npm install @kandian/viola-cli -g

usage

Usage: viola <command> [options]

Options:
  -V, --version   output the version number
  -h, --help      output usage information

Commands:
  init            generate a new project
  add             add a new page
  publish-bundle  publish a bundle by local js file
  publish-zip     publish bundles by local zip file
  help [cmd]      display help for [cmd]

init a new project

Usage: viola-init <project-name>

Options:
  -c, --clone  use git clone
  --offline    use cached template
  -h, --help   output usage information

  Examples:

  # create a new project with an official template
  $ viola init my-project

add a new page fragment

Usage: viola-add <page-name>

Options:
  -c, --clone  use git clone
  -h, --help   output usage information

  Examples:

  # add a new page template
  $ cd my-project
  $ viola add kandianPage

publish a bundle by local js file

Usage: viola-publish-bundle <file-path>

Options:
  -d, --dev   dev mode, use localhost:80 api
  -h, --help  output usage information

  Examples:

    # publish a bundle by local js file
    $ viola publish-bundle ./dist/viola_vue.js

publish bundles by local zip file

Usage: viola-publish-zip <file-path>

Options:
  -d, --dev   dev mode, use localhost:80 api
  -h, --help  output usage information
  
  Examples:

    # publish a zip by local zip file
    $ viola publish-zip ./dist/offline.zip

Readme

Keywords

Package Sidebar

Install

npm i @kandian/viola-cli

Weekly Downloads

1

Version

1.3.0

License

ISC

Unpacked Size

30.2 kB

Total Files

20

Last publish

Collaborators

  • aircloud
  • ronktsang
  • gisonyeung