From ce8d2b551ef6a3f0fee50389fb7bedefe4ff3717 Mon Sep 17 00:00:00 2001 From: luics Date: Thu, 7 Jul 2016 21:08:37 +0800 Subject: [PATCH 1/3] * [doc] add 0.6.1 version --- doc/references/common-event.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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`, From cd48af5f24c6ccd5c19aba950d3d09a883625519 Mon Sep 17 00:00:00 2001 From: budao <705040424@qq.com> Date: Thu, 7 Jul 2016 21:41:14 +0800 Subject: [PATCH 2/3] * [doc] update devtools command line doc --- doc/tools/devtools.md | 44 ++++++++++++++++++++++++++++++++++++++----- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/doc/tools/devtools.md b/doc/tools/devtools.md index 9a743f25b1..90c6ba595b 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 From 830bc894b0242005c7450d34d8012f42e94aa9ea Mon Sep 17 00:00:00 2001 From: lvscar Date: Thu, 7 Jul 2016 22:19:35 +0800 Subject: [PATCH 3/3] * [doc] update npm link --- doc/tools/cli.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)