猿问

怎么使用npm安装weex-toolkit?

怎么使用npm安装weex-toolkit


呼如林
浏览 1503回答 1
1回答

凤凰求蛊

安装weex-toolkit1npm install -g weex-toolkitweex命令使用方法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 
随时随地看视频慕课网APP
我要回答