long-git-cli
Version:
A CLI tool for Git tag management.
31 lines • 915 B
JavaScript
;
/**
* Web UI 测试脚本
* 用于测试 Web UI 服务器
*/
Object.defineProperty(exports, "__esModule", { value: true });
const server_1 = require("./ui/server");
async function main() {
console.log("🧪 启动 Web UI 测试...\n");
const server = new server_1.WebUIServer();
try {
/** 启动服务器 */
await server.start();
/** 打开浏览器 */
await server.openBrowser();
console.log("\nWeb UI 测试服务器已启动");
console.log("按 Ctrl+C 停止服务器\n");
/** 监听退出信号 */
process.on("SIGINT", async () => {
console.log("\n\n🛑 正在关闭服务器...");
await server.stop();
process.exit(0);
});
}
catch (error) {
console.error("启动失败:", error);
process.exit(1);
}
}
main();
//# sourceMappingURL=test-ui.js.map