@@ -4,11 +4,45 @@ Weex devtools is a custom devtools for weex that implements [Chrome Debugging Pr
44
55## Install
66
7- * Install
8- * ` $ npm install -g weex-devtool `
9- * Usage
10- * ` $ weex-devtool ` , launch debugger server
11- * ` $ weex-devtool -p 8888 ` # launch debugger server and set the server port
7+ ```
8+ $ npm install -g weex-toolkit
9+ ```
10+ #### usage
11+ ```
12+ weex debug [options] [we_file|bundles_dir]
13+
14+ Options:
15+
16+ -h, --help output usage information
17+ -V, --verbose display logs of debugger server
18+ -v, --version display version
19+ -p, --port [port] set debugger server port
20+ -e, --entry [entry] set the entry bundlejs path when you specific the bundle server root path
21+ -m, --mode [mode] set build mode [transformer|loader]
22+ -w, --watch watch we file changes auto build them and refresh debugger page![default enabled]
23+ ```
24+
25+ #### start debugger
26+ ```
27+ $weex debug
28+ ```
29+ this command will start debug server and launch a chrome opening ` DeviceList ` page.
30+ this page will display a qrcode ,you can use ` Playground App ` scan it for starting debug.
31+
32+ #### start debugger with a we file
33+ ```
34+ $weex debug your_weex.we
35+ ```
36+ this command will compile ` your_weex.we ` to ` your_weex.js ` and start the debug server as upon command.
37+ ` your_weex.js ` will deploy on the server and displayed in ` DeviceList ` page as another qrcode contain the url of your_weex.js
38+
39+
40+ #### start debugger with a directory of we files
41+ ```
42+ $weex debug your/we/path -e index.we
43+ ```
44+ this command will build every file in your/we/path and deploy them on the bundle server. your directory will mapping to http://localhost:port/weex/
45+ use -e to set the entry of these bundles. and the url of "index.we" will display on device list page as another qrcode.
1246
1347## Features
1448
0 commit comments