Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/doc' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
luics committed Jul 7, 2016
2 parents 51653f3 + 830bc89 commit 3b95c44
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 7 deletions.
3 changes: 2 additions & 1 deletion doc/references/common-event.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<span class="weex-version">0.6.1</span>

Weex provides you with simple management of page status, such as `viewappear` and `viewdisappear`

Expand Down
2 changes: 1 addition & 1 deletion doc/tools/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

44 changes: 39 additions & 5 deletions doc/tools/devtools.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3b95c44

Please sign in to comment.