wxa-runner 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/wxa-runner.js +5 -2
- package/package.json +3 -3
package/bin/wxa-runner.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const { Command } = require('commander');
|
|
3
|
+
const { Command, Option } = require('commander');
|
|
4
4
|
const chalk = require('chalk');
|
|
5
5
|
const path = require('path');
|
|
6
6
|
const { spawn } = require('child_process');
|
|
@@ -22,7 +22,9 @@ program
|
|
|
22
22
|
.option('--no-setup', '不执行 setup 文件')
|
|
23
23
|
.option('--no-watch', '不监听文件变化')
|
|
24
24
|
.option('-o, --open', '启动后打开浏览器')
|
|
25
|
-
.option('--
|
|
25
|
+
.option('--devtools-login', '借本机微信开发者工具的登录态访问微信后台:真实的 code 和手机号、服务市场、插件')
|
|
26
|
+
// 旧名,开发服务器会提示改用 --devtools-login
|
|
27
|
+
.addOption(new Option('--real-login').hideHelp())
|
|
26
28
|
.action(async (projectPath, options) => {
|
|
27
29
|
const { DevServer } = require('@open-wxa/wxa-runner-core');
|
|
28
30
|
|
|
@@ -34,6 +36,7 @@ program
|
|
|
34
36
|
baseLibVersion: options.baselib,
|
|
35
37
|
setup: options.setup,
|
|
36
38
|
watch: options.watch,
|
|
39
|
+
devtoolsLogin: options.devtoolsLogin,
|
|
37
40
|
realLogin: options.realLogin
|
|
38
41
|
});
|
|
39
42
|
const url = await server.start();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wxa-runner",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Run WeChat Mini Programs in the browser on the official base library, for debugging and E2E testing",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wechat",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"chalk": "^4.1.2",
|
|
37
37
|
"commander": "^11.1.0",
|
|
38
|
-
"@open-wxa/wxa-runner-core": "0.
|
|
39
|
-
"@open-wxa/wxa-runner-extractor": "0.
|
|
38
|
+
"@open-wxa/wxa-runner-core": "0.7.0",
|
|
39
|
+
"@open-wxa/wxa-runner-extractor": "0.7.0"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": ">=18"
|