1.4.0 • Published 4 years ago

xhw-cli v1.4.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

xhw-cli

小黑屋前端团队cli脚手架

最低兼容版本 Node 8.6.0

注意点

  • 一条命令对应task下的一个文件夹
  • 生成的json放到和src同级别的json文件夹下 (命名 jsHot_时间戳.json)
Options:
  -v, --version                output the version number
  -h, --help                   output usage information

Commands:
  init                         新建项目
  create [options] <template>  新建模板
  wepy2native <name>           将wepy代码转换成原生代码
  hot [options]                微信小程序热更新
  check [options]              检查
  print                        输出配置
  wechat [options]             利用微信开发者cli进行相关操作
  *                            printf Non-existent commands

热更新

生成热更新json

(包括js热更新json 和 ui热更新json)

xhw-cli hot -j  或 xhw-cli hot --json

转换成热更新代码

(我们只对dist做操作)

xhw-cli hot -t  或 xhw-cli hot --transform