Skip to content

Commit 3b95c44

Browse files
committed
Merge remote-tracking branch 'origin/doc' into dev
2 parents 51653f3 + 830bc89 commit 3b95c44

File tree

3 files changed

+42
-7
lines changed

3 files changed

+42
-7
lines changed

doc/references/common-event.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ If a `disappear` event is bound to a component inside a scroller, the event will
3636
* `timestamp`: Timestamp when event is triggered.
3737
* `direction`: The direction in which the scroller is scrolling. Should be `up` or `down`
3838

39-
## Page event
39+
## Page event
40+
<span class="weex-version">0.6.1</span>
4041

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

doc/tools/cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,5 @@ a http server will start running , your current directory(.) will be the documen
8686

8787
## Issue & Feedback
8888

89-
[Github Issue List](https://github.com/alibaba/weex_toolchain/issues)
89+
[Github Issue List](https://github.com/weexteam/weex-toolkit/issues)
9090

doc/tools/devtools.md

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)