@bty/keyu-cli
v0.0.3-beta.18
Published
a cli
Downloads
12
Readme
依赖
npm install @bty/keyu-cli -g
说明
这是可鱼平台的自定义组件发布CLI
- 发布前需要先登陆
- 发布前需要先创建可鱼配置文件keyu.config.js 或者直接keyu init
命令
Usage: keyu <command>
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
pub 发布
init 创建可鱼配置文件
login 登陆
keyu.config.js配置文件
| 属性 | 说明 | 类型 | 默认值 | 版本 | | --- | --- | --- | --- | --- | | path | 打包文件夹 | string | "dist" | | | entry | 打包文件 | string | "index.js" | | | libraryTarget | 打包格式 | string | "umd" | | | workspaceId | 工作空间Id | string | - | | | demoPath | 自定义初始化组件demo示例 | string | - | | | iconSVG | 图片地址 | string | - | | | keyuWidgetConfig | 可鱼自定义组件配置项 | {} | - | |
keyu.config.js keyuWidgetConfig 配置
| 属性 | 说明 | 类型 | 默认值 | 版本 |
| --- | --- | --- | --- | --- |
| events | 平台事件,例如:{"a": "showAlert('11')"} | Record<string, string> | {} | |
| model | 平台参数,例如:{"a": "aaa"} | Record<string, string> | {} | |
| codeType | 组件类型 | vue
| react
| "vue" | |
| deps | 平台依赖组件 | [] | - | |
keyu.config.js keyuWidgetConfig-deps 配置
| 属性 | 说明 | 类型 | 默认值 | 版本 | | --- | --- | --- | --- | --- | | name | 依赖名称 | string | - | | | version | 依赖版本 | string | - | | | resources | 依赖地址 umd | {url: string}[] | - | |