@lcap/cli
Version:
utils for lcap
58 lines • 1.26 kB
TypeScript
import type { TokenData } from '../../utils';
/**
* 平台数据
*/
export interface PlatformData {
/**
* 平台名称
*/
name: 'dev' | 'test' | 'ci';
/**
* 平台显示名称
*/
display: string;
/**
* 平台链接
*/
endpoint: string;
/**
* 资源桶名称
*/
bucketName: string;
}
/** 密钥数据 */
export interface SecretData {
access: string;
secret: string;
}
/** 资源映射 */
export interface AssetMapping {
/** 本地文件夹 */
from: string;
/**
* 线上文件夹
*
* @description 线上路径需要和版本号以及分支名称拼接
*/
to(version: string, branch?: string): string;
}
export type PublishType = 'ide' | 'vue3' | 'sandbox';
export interface CommandOptions extends TokenData {
/** 发布平台 */
platform: PlatformData['name'] | PlatformData['name'][];
/** 发布资源 */
type: PublishType;
/** 发布模式 */
mode: 'normal' | 'independent';
/** 发布人账号 */
publisher?: string;
/**
* 发布时间
*
* @description ISO 8601 format
*/
publishAt?: string;
/** 当前分支名称 */
branch?: string;
}
//# sourceMappingURL=types.d.ts.map