miniprogram-ci 2.1.5 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/README.md +2 -0
- package/dist/@types/ci/index.d.ts +2 -0
- package/dist/@types/ci/miniapp/archive.d.ts +18 -0
- package/dist/@types/ci/miniapp/checkBuildArgument.d.ts +5 -0
- package/dist/@types/ci/miniapp/upload.d.ts +2 -1
- package/dist/@types/ci/miniapp-cloud-upload.d.ts +15 -0
- package/dist/@types/common/code-analyse/index.d.ts +2 -1
- package/dist/@types/config/config.d.ts +1 -1
- package/dist/@types/index.d.ts +1 -1
- package/dist/@types/utils/report.d.ts +1 -1
- package/dist/ci/android-miniapp-toolkit/dist/index.js +1 -1
- package/dist/ci/index.js +1 -1
- package/dist/ci/miniapp/archive.js +1 -1
- package/dist/ci/miniapp/checkBuildArgument.js +1 -1
- package/dist/ci/miniapp/upload.js +1 -1
- package/dist/ci/miniapp-cloud-upload.js +1 -0
- package/dist/ci/utils/codeDenpendencyQualityChecker.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/common/code-analyse/index.js +1 -1
- package/dist/config/config.js +1 -1
- package/dist/index.js +1 -1
- package/dist/utils/report.js +1 -1
- package/package.json +4 -6
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -16,6 +16,7 @@ import { getWhiteExtList } from '../utils/white_ext_list';
|
|
|
16
16
|
import { checkCodeQuality } from './checkCodeQuality';
|
|
17
17
|
import { buildApk } from './build-apk';
|
|
18
18
|
import { buildIpa } from './build-ipa';
|
|
19
|
+
import { miniappCloudUpload } from './miniapp-cloud-upload';
|
|
19
20
|
export { Project };
|
|
20
21
|
export type { IUploadOptions };
|
|
21
22
|
export declare const upload: typeof _upload;
|
|
@@ -39,5 +40,6 @@ export { checkCodeQuality };
|
|
|
39
40
|
export { getWhiteExtList };
|
|
40
41
|
export { buildApk };
|
|
41
42
|
export { buildIpa };
|
|
43
|
+
export { miniappCloudUpload };
|
|
42
44
|
export declare const workletVersion: any;
|
|
43
45
|
export declare function cleanCache(): void;
|
|
@@ -8,6 +8,7 @@ interface IMiniappOptions {
|
|
|
8
8
|
remoteDebugEnable: boolean;
|
|
9
9
|
archVersion?: 0 | 1;
|
|
10
10
|
needClientJsExtInfo?: 0 | 1;
|
|
11
|
+
uploadId?: string;
|
|
11
12
|
}
|
|
12
13
|
interface IUploadArchiveInfo {
|
|
13
14
|
useSubPkg: boolean;
|
|
@@ -23,5 +24,22 @@ export interface IBuildArchiveOptions {
|
|
|
23
24
|
miniappOptions: IMiniappOptions;
|
|
24
25
|
uploadArchiveInfo?: IUploadArchiveInfo;
|
|
25
26
|
}
|
|
27
|
+
export declare function getUploadOptions(): {
|
|
28
|
+
appLaunchInfo: {};
|
|
29
|
+
uploadType: string;
|
|
30
|
+
autoTestMock: boolean;
|
|
31
|
+
onProgressUpdate: (...args: any) => void;
|
|
32
|
+
onFilesIgnored: () => void;
|
|
33
|
+
onFilesMissing: () => void;
|
|
34
|
+
remoteDebug: boolean;
|
|
35
|
+
remoteProxyPort: undefined;
|
|
36
|
+
disableUrlCheck: boolean;
|
|
37
|
+
autoPreview: boolean;
|
|
38
|
+
cdpEnabled: boolean;
|
|
39
|
+
remoteAppservice: boolean;
|
|
40
|
+
remoteAppserviceType: string;
|
|
41
|
+
noMaps: boolean;
|
|
42
|
+
showProgress: boolean;
|
|
43
|
+
};
|
|
26
44
|
export declare function buildProjectArchive(ciOpts: IBuildApkOptions | IBuildIpaOptions, opts: IBuildArchiveOptions): Promise<void>;
|
|
27
45
|
export {};
|
|
@@ -11,6 +11,11 @@ export interface IIOSRemoteCloudBuildInfo {
|
|
|
11
11
|
profile?: string;
|
|
12
12
|
tpnsProfile?: string;
|
|
13
13
|
}
|
|
14
|
+
export declare enum IMiniappPkgType {
|
|
15
|
+
'Release' = "Release",
|
|
16
|
+
'Debug' = "Debug",
|
|
17
|
+
'HotReload' = "HotReload"
|
|
18
|
+
}
|
|
14
19
|
export declare const transformAndroidBuildArgument: (opts: IBuildApkOptions) => {
|
|
15
20
|
buildArchiveOpts: IBuildArchiveOpts;
|
|
16
21
|
cloudBuildInfo: IAndroidCloudBuildInfo;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { IBuildArchiveOptions } from './archive';
|
|
2
2
|
import { IBuildApkOptions } from '../build-apk';
|
|
3
3
|
import { IBuildIpaOptions } from '../build-ipa';
|
|
4
|
+
import { IMiniappCloudUploadOptions } from '../miniapp-cloud-upload';
|
|
4
5
|
export declare const SIGNATURE_FILE_NAME = "ci.signature";
|
|
5
|
-
type IMiniAppUploadArchiveOptions = (IBuildApkOptions | IBuildIpaOptions) & IBuildArchiveOptions;
|
|
6
|
+
type IMiniAppUploadArchiveOptions = (IBuildApkOptions | IBuildIpaOptions | IMiniappCloudUploadOptions) & IBuildArchiveOptions;
|
|
6
7
|
type TSubPackageInfo = Array<{
|
|
7
8
|
name: string;
|
|
8
9
|
size: number;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CIProject } from '../project/ciProject';
|
|
2
|
+
import { IUploadOptions } from './upload';
|
|
3
|
+
export interface IMiniappCloudUploadOptions extends IUploadOptions {
|
|
4
|
+
project: CIProject;
|
|
5
|
+
version: string;
|
|
6
|
+
desc?: string;
|
|
7
|
+
iOSPlatform?: boolean;
|
|
8
|
+
androidPlatform?: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface IMiniappCloudUploadResult {
|
|
11
|
+
errmsg: string;
|
|
12
|
+
success: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare function miniappCloudUpload(options: IMiniappCloudUploadOptions): Promise<IMiniappCloudUploadResult>;
|
|
15
|
+
export {};
|
|
@@ -298,6 +298,7 @@ export declare interface IModule {
|
|
|
298
298
|
childModules: IModule[];
|
|
299
299
|
findChild(type: ModuleType): IModule | null;
|
|
300
300
|
findChildren(type: ModuleType): IModule[];
|
|
301
|
+
findChildrenRecursively(type: ModuleType, childrenMods?: IModule[]): IModule[];
|
|
301
302
|
}
|
|
302
303
|
|
|
303
304
|
/**
|
|
@@ -382,6 +383,6 @@ export declare type ModuleId = string;
|
|
|
382
383
|
/**
|
|
383
384
|
* @public
|
|
384
385
|
*/
|
|
385
|
-
export declare type ModuleType = 'Js' | 'Wxml' | 'Wxss' | 'Wxs' | 'Config' | 'MainPackage' | 'SubPackage' | 'Page' | 'Component' | 'Plugin' | 'Worker' | 'FunctionalPages' | 'ContextModule' | 'PluginPackage' | 'GameMainPackage' | 'GameSubPackage';
|
|
386
|
+
export declare type ModuleType = 'Js' | 'Wxml' | 'Wxss' | 'Wxs' | 'Config' | 'MainPackage' | 'SubPackage' | 'WorkerSubPackage' | 'Page' | 'Component' | 'Plugin' | 'Worker' | 'FunctionalPages' | 'ContextModule' | 'PluginPackage' | 'GameMainPackage' | 'GameSubPackage';
|
|
386
387
|
|
|
387
388
|
export { }
|
package/dist/@types/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './ci/index';
|
|
1
2
|
import { BaseProject } from './project/baseProject';
|
|
2
3
|
import { CIProject } from './project/ciProject';
|
|
3
4
|
import { DevtoolsProject } from './project/devtoolsProject';
|
|
@@ -27,5 +28,4 @@ export * from './modules/corecompiler/original';
|
|
|
27
28
|
export declare const workletVersion: any;
|
|
28
29
|
export { getWhiteExtList, proxy, locales, isHexColor, DefaultProjectAttr, JSON_CONTENT_ERR, compileTypeConfig, generateMD5, mkdirSync, normalizePath, checkIsInSubPackage, getHelperOutputPath, isValidHelperFunc, getHelperName, getHelperContent, getHelperDeps, getBabelHelperVersion, getBabelHelperDepMap, escapeQuot, escapeScript, getSummerPluginConfig, packOptionsHelper, };
|
|
29
30
|
export { adroidDeviceUtils, iosDeviceUtils, miniappBuilder, };
|
|
30
|
-
export * from './ci/index';
|
|
31
31
|
export { MiniAppI18N, MiniAppJson, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MiniProgramCI } from '../types';
|
|
2
|
-
type ReportAction = 'preview' | 'upload' | 'npm' | 'cloud' | 'getDevSourceMap' | 'buildApk' | 'buildIpa';
|
|
2
|
+
type ReportAction = 'preview' | 'upload' | 'npm' | 'cloud' | 'getDevSourceMap' | 'buildApk' | 'buildIpa' | 'miniappCloudUpload';
|
|
3
3
|
export declare function reportAction(action: ReportAction, retcode: number, retmsg: string, spendtime: number, project: MiniProgramCI.IProject, setting?: MiniProgramCI.ICompileSettings): void;
|
|
4
4
|
export declare function wrapReport<T extends Function>(action: ReportAction, method: T): T;
|
|
5
5
|
export {};
|