![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
weex-devtool
Advanced tools
Weex CLI native debugger tool (http://alibaba.github.io/weex/doc/tools/devtools.html):
$npm install -g weex-devtool
weex-devtool [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]
$weex-devtool
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.
$weex-devtool 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
$weex-devtool 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
Android: pls refer to https://github.com/alibaba/weex/blob/dev/android/inspector/README.md
IOS: pls refer to https://github.com/alibaba/weex/blob/dev/ios/WXDevtool/README.md
$npm install -g weex-devtool
weex debug [options] [we_file|bundles_dir]
Options:
-h, --help 显示帮助
-V, --verbose 显示debug服务器运行时的各种log
-v, --version 显示版本
-p, --port [port] 设置debug服务器端口号 默认为8088
-e, --entry [entry] debug一个目录时,这个参数指定整个目录的入口bundle文件,这个bundle文件的地址会显示在debug主页上(作为二维码)
-m, --mode [mode] 设置构建we文件的方式,transformer 最基础的风格适合单文件,loader:wepack风格 适合模块化的多文件.默认为transformer
$weex debug
单纯启动一个调试服务器,并同时唤起chrome浏览器打开调试主页
.
这个调试主页
上会有一个二维码,使用Playground App扫这个二维码可以开启Playground调试.
开启调试后,设备列表中会出现您的设备,根据提示进行后续的调试操作
$weex debug your_weex.we
这个命令会将your_weex.we编译成bundlejs文件 部署到debug服务器
并启动debug服务器如上述命令那样.打开的调试主页
会多显示一个二维码,使用playground app
扫这个码可以加载your_weex.we.(注意要先扫描开启调试的那个码)
这个命令会自动检测your_weex.we文件变动,如果发现内容被修改则立即重新编译部署,并刷新debugger页面
.
$weex debug your/we/path -e index.we
这个命令会编译你指定目录下的所有的we文件,并把编译好的bundlejs部署到debug服务器,他们的地址会映射到 http://lcoalhost:8088/weex/ 下
比如 your/we/path/index.we
可以通过http://lcoalhost:8088/weex/index.js访问
your/we/path/demo/test.we
可以通过http://lcoalhost:8088/weex/demo/index.js
-e参数可以指定一个入口的we文件,这个文件的地址会显示在调试主页
上(作为二维码)
FAQs
weex developer tool for debugging weex app with chrome devtool
The npm package weex-devtool receives a total of 11 weekly downloads. As such, weex-devtool popularity was classified as not popular.
We found that weex-devtool demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.