miniprogram-ci 2.1.4 → 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 CHANGED
@@ -1,3 +1,7 @@
1
+ #### 2.1.6
2
+ - `new` 新增 多端资源包上传
3
+ #### 2.1.5
4
+ - `fix` 修复 多端构建问题
1
5
  #### 2.1.4
2
6
  - `new` 优化 预览和上传的时候不需要将app.json usingComponents 配置扩散到页面 json 文件中,减少代码包体积
3
7
  #### 2.1.3
package/README.md CHANGED
@@ -7,6 +7,10 @@ miniprogram-ci 是从[微信开发者工具](https://developers.weixin.qq.com/mi
7
7
  miniprogram-ci 从 1.0.28 开始支持第三方平台开发的上传和预览,调用方式与普通开发模式无异。[查看详情](#第三方平台开发)
8
8
 
9
9
  ## 最近变更
10
+ #### 2.1.6
11
+ - `new` 新增 多端资源包上传
12
+ #### 2.1.5
13
+ - `fix` 修复 多端构建问题
10
14
  #### 2.1.4
11
15
  - `new` 优化 预览和上传的时候不需要将app.json usingComponents 配置扩散到页面 json 文件中,减少代码包体积
12
16
  #### 2.1.3
@@ -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 { }
@@ -1,5 +1,5 @@
1
1
  import { IProject } from '../types';
2
- export declare const CI_VERSION = "2.1.4";
2
+ export declare const CI_VERSION = "2.0.24";
3
3
  export declare const PARAM_ERROR = 10000;
4
4
  export declare const WXML_NOT_FOUND = 10007;
5
5
  export declare const JS_NOT_FOUND = 10008;
@@ -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 {};