更新
This commit is contained in:
+53
@@ -0,0 +1,53 @@
|
||||
export declare function genEncryptEasyComModuleCode(platform: typeof process.env.UNI_UTS_PLATFORM, components: Record<string, '.vue' | '.uvue'>): string;
|
||||
export declare function genEncryptUTSModuleCode(module: string, inputDir: string, platform: typeof process.env.UNI_UTS_PLATFORM): string;
|
||||
export declare function parseUniModulesWithComponents(inputDir: string, platform: typeof process.env.UNI_UTS_PLATFORM): Record<string, string>;
|
||||
/**
|
||||
* 解析 easyCom 组件列表
|
||||
* @param pluginId
|
||||
* @param inputDir
|
||||
* @returns
|
||||
*/
|
||||
export declare function parseEasyComComponents(pluginId: string, inputDir: string, detectBinary?: boolean): Record<string, ".vue" | ".uvue">;
|
||||
export declare function findEncryptUniModules(platform: typeof process.env.UNI_UTS_PLATFORM, inputDir: string, cacheDir?: string): Record<string, EncryptPackageJson | undefined>;
|
||||
export declare function findUploadEncryptUniModulesFiles(uniModules: Record<string, EncryptPackageJson | undefined>, platform: typeof process.env.UNI_UTS_PLATFORM, inputDir: string): Record<string, string[]>;
|
||||
export declare function packUploadEncryptUniModules(uniModules: Record<string, EncryptPackageJson | undefined>, platform: typeof process.env.UNI_UTS_PLATFORM, inputDir: string, cacheDir: string): {
|
||||
zipFile: string;
|
||||
modules: string[];
|
||||
};
|
||||
export interface EncryptPackageJson {
|
||||
id: string;
|
||||
version: string;
|
||||
uni_modules: {
|
||||
dependencies: string[];
|
||||
artifacts: {
|
||||
env: {
|
||||
compilerVersion: string;
|
||||
} & Record<string, any>;
|
||||
apis: string[];
|
||||
components: string[];
|
||||
scopedSlots: string[];
|
||||
customElements: {
|
||||
name: string;
|
||||
class: string;
|
||||
}[];
|
||||
declaration: string;
|
||||
};
|
||||
};
|
||||
}
|
||||
export declare function initCheckEnv(): Record<string, string>;
|
||||
export declare function resolveEncryptUniModule(id: string, platform: typeof process.env.UNI_UTS_PLATFORM, isX?: boolean): string | undefined;
|
||||
export declare function checkEncryptUniModules(inputDir: string, params: {
|
||||
mode: 'development' | 'production';
|
||||
packType: 'debug' | 'release';
|
||||
compilerVersion: string;
|
||||
appid: string;
|
||||
appname: string;
|
||||
platform: typeof process.env.UNI_UTS_PLATFORM;
|
||||
'uni-app-x': boolean;
|
||||
}): Promise<{} | undefined>;
|
||||
export declare function parseUniModulesArtifacts(): {
|
||||
name: string;
|
||||
package: string;
|
||||
scopedSlots: string[];
|
||||
declaration: string;
|
||||
}[];
|
||||
Reference in New Issue
Block a user