wechat-devtool
Version:
Wechat Miniprogram Devtool CLI for NodeJS
26 lines • 694 B
TypeScript
/// <reference types="node" />
import { SpawnOptions } from 'child_process';
/**
* 获取 小程序CLI 路径
* refer https://github.com/egret-labs/egret-core/blob/master/tools/commands/run.ts
*/
export declare function getCLIPath(): Promise<string | undefined>;
/**
* 获取CLI开启的端口号
*/
export declare function getPort(): Promise<number>;
/**
* 执行CLI命令
* @param args
*/
export declare function cli(...args: string[]): Promise<{
stdout: string;
stderr: string;
}>;
/**
* spwan 方式 调用 cli
* @param args
* @param options
*/
export declare function cliSpawn(args: string[], options?: SpawnOptions): Promise<unknown>;
//# sourceMappingURL=cli.d.ts.map