UNPKG

@szzbmy/lowcode-cli

Version:

🐇 lowcode-cli is an efficient cli tool for Rabbitpre plugin component secondary development. ❤️

86 lines (85 loc) 2.29 kB
export declare enum DEBUG_STEP { INIT = 0, CREATE_LAUNCH = 1, SELECT_CONFIG = 2, START_LAUNCH = 3, START_DEBUG_SERVER = 4, FINISHED = 5 } export interface DebugStep { type: DEBUG_STEP; options?: Record<string, any>; } export interface Workspace { /** 相对调试配置文件的的 cofnig.jsonc 路径 */ path: string; /** 真机调试cdn地址,如果是本地环境,需要带上端口号 */ cdnUrl?: string; } /** 启动配置信息 */ export interface LaunchConfig { /** 调试 id */ debugId: string; /** 配置名称 */ name: string; /** 项目工作空间配置 */ workspaces: Workspace[]; /** 作品 id */ appid: string; /** 作品短链接 */ shortUrl: string; /** * 调试浏览器,和 open api 选择浏览器配置保持一致 * 不填时使用电脑默认浏览器打开 */ debugBrowser?: 'chrome' | 'firefox' | 'edge'; /** 调试服务启动端口号 */ debugServerPort?: number; /** * 调试服务域名配置 * @defult `http://127.0.0.1:${PORT}` */ debugServerDomain: string; } /** 启动文件类型声明 */ export interface LaunchInterface { /** schema 版本号 */ version: string; /** 启动配置 */ configurations: LaunchConfig[]; } export interface DebugConfig { /** 当前组件(库)类型 */ schemaType?: 'cmplib' | 'cmp'; /** 当前组件(库)版本 */ schemaVersion?: string; /** 当前组件(库)需要调试的组件列表 */ debugComponentList: { /** 组件标识 */ name?: string; /** 组件名称 */ title?: string; /** version 固定 -1 */ version?: number; /** 组件库时组件(库)标识 */ key?: string; /** 组件库时组件(库)名称 */ label?: string; }[]; /** 调试 CDN 地址 */ debugPluginCDN: string; /** package.json name */ packageName: string; /** 组件库绑定的官方玩法 */ bindPluginName: string; } /** 启动配置选项 */ export interface ConfigItem { value: string; label: string; } export interface SelectItem { label: 'Yes' | 'No'; value: boolean; } export declare const selectItems: SelectItem[];