为了账号安全,请及时绑定邮箱和手机立即绑定

怎么使用npm安装weex-toolkit?

怎么使用npm安装weex-toolkit?

呼如林 2018-07-23 14:12:29
怎么使用npm安装weex-toolkit
查看完整描述

1 回答

?
凤凰求蛊

TA贡献1825条经验 获得超4个赞

安装weex-toolkit

1npm install -g weex-toolkit

weex命令使用方法


weex foo/bar/we_file_or_dir_path  [options]weex init  Options:  --qr     display QR code for native runtime,  -o,--output  transform weex we file to JS Bundle, output path (single JS bundle file or dir)           [for create sub cmd] it specified we file output path                     --watch  using with -o , watch input path , auto run transform if change           happen  -s,--server  start a http file server, weex .we file will be transforme to JS bundle on the server , specify local root path using the option  -h, --host  specify server listening  IP  --port   http listening port number ,default is 8081             --wsport websocket listening port number ,default is 8082  -f, --force   [for create sub cmd] force to replace exsisting file(s)  --np     do not open preview browser automatic         --version show version of weex toolkit  --help   Show help 


查看完整回答
反对 回复 2018-08-05
  • 1 回答
  • 0 关注
  • 1444 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信