diff --git a/doc/references/common-event.md b/doc/references/common-event.md index 68dc00fbde..d726652145 100644 --- a/doc/references/common-event.md +++ b/doc/references/common-event.md @@ -36,7 +36,8 @@ If a `disappear` event is bound to a component inside a scroller, the event will * `timestamp`: Timestamp when event is triggered. * `direction`: The direction in which the scroller is scrolling. Should be `up` or `down` -## Page event +## Page event +0.6.1 Weex provides you with simple management of page status, such as `viewappear` and `viewdisappear`, diff --git a/doc/tools/cli.md b/doc/tools/cli.md index c41da8ceb6..0e6df5f346 100644 --- a/doc/tools/cli.md +++ b/doc/tools/cli.md @@ -86,5 +86,5 @@ a http server will start running , your current directory(.) will be the documen ## Issue & Feedback -[Github Issue List](https://github.com/alibaba/weex_toolchain/issues) +[Github Issue List](https://github.com/weexteam/weex-toolkit/issues) diff --git a/doc/tools/devtools.md b/doc/tools/devtools.md index 8dcbe666db..b866cd334b 100644 --- a/doc/tools/devtools.md +++ b/doc/tools/devtools.md @@ -4,11 +4,45 @@ Weex devtools is a custom devtools for weex that implements [Chrome Debugging Pr ## Install -* Install - * `$ npm install -g weex-devtool` -* Usage - * `$ weex-devtool` , launch debugger server - * `$ weex-devtool -p 8888` # launch debugger server and set the server port +``` + $ npm install -g weex-toolkit +``` +#### usage +``` +weex debug [options] [we_file|bundles_dir] + + Options: + + -h, --help output usage information + -V, --verbose display logs of debugger server + -v, --version display version + -p, --port [port] set debugger server port + -e, --entry [entry] set the entry bundlejs path when you specific the bundle server root path + -m, --mode [mode] set build mode [transformer|loader] + -w, --watch watch we file changes auto build them and refresh debugger page![default enabled] +``` + +#### start debugger +``` +$weex debug +``` +this command will start debug server and launch a chrome opening `DeviceList` page. +this page will display a qrcode ,you can use `Playground App` scan it for starting debug. + +#### start debugger with a we file +``` +$weex debug your_weex.we +``` +this command will compile `your_weex.we` to `your_weex.js` and start the debug server as upon command. +`your_weex.js` will deploy on the server and displayed in `DeviceList` page as another qrcode contain the url of your_weex.js + + +#### start debugger with a directory of we files +``` +$weex debug your/we/path -e index.we +``` +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/ +use -e to set the entry of these bundles. and the url of "index.we" will display on device list page as another qrcode. ## Features