Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
刘观宇 authored and 刘观宇 committed Apr 5, 2020
1 parent 800ad4c commit ae045ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion articles/20200406_liuguanyu_谈谈小程序自动化.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

我们知道,微信开发者工具提供了命令行与 HTTP 服务两种接口供外部调用,开发者可以通过命令行或 HTTP 请求指示工具进行登录、预览、上传等操作。

SDK通过命令行方式将微信开发者工具调起,在通过外部方式导入目标项目。微信开发者工具通过读取目标项目的project.config.js,初始化项目。并读取启动命令的`--auto-port`参数,使得SDK可以通过此端口的Websocket服务,实现与对应的目标小程序调试窗口进行交互。
SDK通过命令行方式将微信开发者工具调起,再通过外部方式导入目标项目。微信开发者工具通过读取目标项目的project.config.js,初始化项目。并读取启动命令的`--auto-port`参数,使得SDK可以通过此端口的Websocket服务,实现与对应的目标小程序调试窗口进行交互。

这就是`miniprogram-automator`工作的大致原理。

Expand Down

0 comments on commit ae045ad

Please sign in to comment.