1.0.7 • Published 4 years ago

hua-cli v1.0.7

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

hua-cli

命令行工具,用于从模板快速生成项目

安装

$ npm install -g hua-cli

使用

hua

Usage: hua <command> [options]

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

Commands:
  init           generate a new project from a template
  list           list available official templates
  page           create a new page, include html, scss, js file
  publish        publish project to remote server
  help [cmd]     display help for [cmd]

init

# 从模板新建项目
$ hua init <my-project>

list

# 列出所有可用的模板
$ hua list

page

# 创建新页面
$ hua page <pageName>

publish

# 发布dist目录到远程服务器
$ hua publish

todo

  • 支持 hua publish 命令
  • 支持 hua page 命令