ms-vite-plugin 1.1.1 → 1.1.2
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/dist/cli.js +8 -8
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -365,7 +365,7 @@ function renderDetailedCommandHelp() {
|
|
|
365
365
|
return lines.join("\n");
|
|
366
366
|
}
|
|
367
367
|
// 配置 CLI 程序
|
|
368
|
-
commander_1.program.name("ms-cli").description("快点JS 构建工具").version("1.
|
|
368
|
+
commander_1.program.name("ms-cli").description("快点JS 构建工具").version("1.1.2");
|
|
369
369
|
commander_1.program.addHelpText("after", renderDetailedCommandHelp);
|
|
370
370
|
// 构建命令
|
|
371
371
|
commander_1.program
|
|
@@ -383,9 +383,9 @@ commander_1.program
|
|
|
383
383
|
.command("run")
|
|
384
384
|
.description("在设备上运行项目")
|
|
385
385
|
.option("-i, --ip <ip>", "设备 IP 地址(transport=http 时必填)")
|
|
386
|
-
.option("--port <port>", "设备端口
|
|
386
|
+
.option("--port <port>", "设备端口", "9800")
|
|
387
387
|
.option("-t, --transport <transport>", "传输方式: http|ws", "http")
|
|
388
|
-
.option("--ws-port <wsPort>", "WS 服务端口
|
|
388
|
+
.option("--ws-port <wsPort>", "WS 服务端口", "31111")
|
|
389
389
|
.option("--ws-wait-ms <wsWaitMs>", "WS 等待设备连接时间(毫秒)", "30000")
|
|
390
390
|
.action(runCommand);
|
|
391
391
|
// UI 预览命令
|
|
@@ -393,9 +393,9 @@ commander_1.program
|
|
|
393
393
|
.command("run-ui")
|
|
394
394
|
.description("在设备上预览 UI")
|
|
395
395
|
.option("-i, --ip <ip>", "设备 IP 地址(transport=http 时必填)")
|
|
396
|
-
.option("--port <port>", "设备端口
|
|
396
|
+
.option("--port <port>", "设备端口", "9800")
|
|
397
397
|
.option("-t, --transport <transport>", "传输方式: http|ws", "http")
|
|
398
|
-
.option("--ws-port <wsPort>", "WS 服务端口
|
|
398
|
+
.option("--ws-port <wsPort>", "WS 服务端口", "31111")
|
|
399
399
|
.option("--ws-wait-ms <wsWaitMs>", "WS 等待设备连接时间(毫秒)", "30000")
|
|
400
400
|
.action(runUICommand);
|
|
401
401
|
// 停止命令
|
|
@@ -403,16 +403,16 @@ commander_1.program
|
|
|
403
403
|
.command("stop")
|
|
404
404
|
.description("停止设备上的项目")
|
|
405
405
|
.option("-i, --ip <ip>", "设备 IP 地址(transport=http 时必填)")
|
|
406
|
-
.option("--port <port>", "设备端口
|
|
406
|
+
.option("--port <port>", "设备端口", "9800")
|
|
407
407
|
.option("-t, --transport <transport>", "传输方式: http|ws", "http")
|
|
408
|
-
.option("--ws-port <wsPort>", "WS 服务端口
|
|
408
|
+
.option("--ws-port <wsPort>", "WS 服务端口", "31111")
|
|
409
409
|
.option("--ws-wait-ms <wsWaitMs>", "WS 等待设备连接时间(毫秒)", "30000")
|
|
410
410
|
.action(stopCommand);
|
|
411
411
|
// WS 服务启动命令
|
|
412
412
|
commander_1.program
|
|
413
413
|
.command("ws-start")
|
|
414
414
|
.description("启动 CLI 内置 WS 服务")
|
|
415
|
-
.option("--ws-port <wsPort>", "WS 服务端口
|
|
415
|
+
.option("--ws-port <wsPort>", "WS 服务端口", "31111")
|
|
416
416
|
.action(wsStartCommand);
|
|
417
417
|
// WS 服务停止命令
|
|
418
418
|
commander_1.program
|