/** * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途 */ import minimist from "minimist"; import { IUploadOptions } from 'minidev'; import { ProjectType } from "miniprogram-ci/dist/@types/types"; export { IUploadOptions, ProjectType }; export declare type CommandPromiseRes = { code: number; err?: string; }; export declare type EnvCustom = { MODE_ENV?: string; PLATFORM_ENV?: string; ROOT_PATH?: string; FIX_ENV?: string; DEBUG_ENV?: "OPEN" | "CLOSE"; SOURCE_ROOT_PATH?: string; }; export declare type BuildOptions = { appId?: string; isWatch?: boolean; isCi?: boolean; }; export declare type Ci = { privateKey: string; toolId: string; }; export declare type Dd = { accessToken: string; secret: string; }; export declare type Tt = { email: string; password: string; }; export interface ArgsResponse extends minimist.ParsedArgs { robot: Robot; watch: boolean; ci?: Ci; dd?: Dd; privacy?: Dd; tt?: Tt; isCi?: boolean; isWatch?: boolean; isDebug?: boolean; isUpload?: boolean; isMulti?: boolean; isAutoTag?: boolean; isTestRobot?: boolean; message?: string; } export declare type InfoOptions = { appId: string; version?: string; description?: string; label?: string; tag?: string; robot?: number; template?: number; audit?: { versionScreenshot: string[]; }; projectName?: string; }; declare type CiType = string | string[]; interface BranchMapItem { robot?: Robot; type?: CiType; } declare type BranchMapFun = (brand: string) => BranchMapItem; export declare type BranchMap = BranchMapFun | { [propertys: string]: BranchMapItem; }; export declare type FileTypeEntryOrPage = "ENTRY" | "PAGE"; export declare type FileType = FileTypeEntryOrPage | "COMPONENT" | "STYLE" | "IMAGE"; export declare type InsertImportType = Record; declare type CompileExcludeFun = (modelPath: string) => boolean; export declare type ConfigOptions = { name: string; version?: string; description?: string; type: CiType; defaultMode?: string; info: { [propertys: string]: InfoOptions; }; copy?: () => (string | string[])[]; insertImport: InsertImportType; minSwanVersion: string; useTaroPluginBuildBy?: "normal" | "mode" | "type"; git?: string; ci?: Ci; dd?: Dd; tt?: Tt; privacy?: Dd; branchMap?: BranchMap; dynamicDependencies?: Record>; taroVersion?: string; sourceRoot?: string; modes?: string[]; modesExclude?: string[]; compileExclude?: (string | CompileExcludeFun)[]; ts?: number; compileType?: 'vite' | 'taro'; codeFortify?: boolean; }; export declare type UploadResponse = { item: string; result?: { qrCodeUrl?: string; [propertys: string]: any; }; error: Error; errorCode?: number; }; export declare type ProgressType = "build" | "upload"; export declare type Robot = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30; export declare type ConfigInfoResponse = { version: string; description: string; label: string; robot?: Robot; versionPure?: string; minSwanVersion?: string; versionKey: 'Beta' | 'Rc' | ''; }; export declare type CompileType = "miniprogram" | "plugin" | "game" | "gamePlugin"; export declare type ProjectConfig = { miniprogramRoot: string; smartProgramRoot?: string; projectname?: string; appid: string; setting: { [propertys: string]: any; }; compileType: CompileType; projectArchitecture?: "multiPlatform" | "miniprogram" | ""; }; export declare type PkgMap = { [propertys: string]: { label: string; key: ConfigInfoResponse['versionKey']; }; }; export declare enum TaroEnv { "WEAPP" = "weapp", "ALIPAY" = "alipay", "SWAN" = "swan", "QUICKAPP" = "quickapp", "H5" = "h5", "RN" = "rn", "TT" = "tt" } export declare const taroPlatform: string; export declare const taroPlatformAndMode: string; export declare enum TaroConfig { "WEAPP" = "project.config.json", "ALIPAY" = "mini.project.json", "SWAN" = "project.swan.json", "QUICKAPP" = "project.quickapp.json", "TT" = "project.config.json" } export declare type Platform = "weapp" | "alipay" | "swan" | "quickapp" | "h5" | "rn" | "tt";