miniprogram-ci 2.1.17 → 2.1.18

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +4 -0
  3. package/dist/@types/config/config.d.ts +1 -1
  4. package/dist/@types/config/define.d.ts +1 -0
  5. package/dist/@types/modules/corecompiler/original/workerThread/config.d.ts +1 -0
  6. package/dist/@types/modules/corecompiler/summerCompiler.d.ts +2 -1
  7. package/dist/@types/modules/index.d.ts +2 -0
  8. package/dist/@types/modules/nativecompiler/ios/buildCloud.d.ts +2 -0
  9. package/dist/@types/modules/nativecompiler/ios/index.d.ts +1 -0
  10. package/dist/@types/schema/@types/appjson.d.ts +2 -0
  11. package/dist/@types/schema/@types/projectconfigjson.d.ts +1 -1
  12. package/dist/@types/types/core.d.ts +1 -1
  13. package/dist/@types/utils/debug.d.ts +3 -3
  14. package/dist/@types/utils/miniappJson.d.ts +3 -1
  15. package/dist/@types/utils/packOptionsHelper.d.ts +2 -1
  16. package/dist/ci/android-miniapp-toolkit/dist/index.js +1 -1
  17. package/dist/config/config.js +1 -1
  18. package/dist/config/define.js +1 -1
  19. package/dist/modules/corecompiler/original/workerThread/config.js +1 -1
  20. package/dist/modules/corecompiler/original/workerThread/index.js +1 -1
  21. package/dist/modules/corecompiler/original/workerThread/workerManager.js +1 -1
  22. package/dist/modules/corecompiler/processHandler.js +1 -1
  23. package/dist/modules/corecompiler/summer/pluginDriver.js +1 -1
  24. package/dist/modules/corecompiler/summer/plugins/sass.js +1 -1
  25. package/dist/modules/corecompiler/summerCompiler.js +1 -1
  26. package/dist/modules/createSummer.js +1 -1
  27. package/dist/modules/index.js +1 -1
  28. package/dist/modules/nativecompiler/ios/buildCloud.js +1 -1
  29. package/dist/modules/nativecompiler/ios/index.js +1 -1
  30. package/dist/modules/precompiler/conditioncompile/define.js +1 -1
  31. package/dist/modules/precompiler/conditioncompile/index.js +1 -1
  32. package/dist/schema/dist/app.js +29 -1
  33. package/dist/schema/dist/projectconfig.js +2 -1
  34. package/dist/utils/debug.js +1 -1
  35. package/dist/utils/miniappJson.js +1 -1
  36. package/dist/utils/packOptionsHelper.js +1 -1
  37. package/dist/utils/subprocess/processManager.js +1 -1
  38. package/dist/utils/subprocess/processService.js +1 -1
  39. package/package.json +1 -1
  40. package/dist/@types/modules/corecompiler/original/webWorker/WebWorkerInstance.d.ts +0 -1
  41. package/dist/@types/modules/corecompiler/original/webWorker/childWebWorker.d.ts +0 -1
  42. package/dist/modules/corecompiler/original/webWorker/WebWorkerInstance.js +0 -1
  43. package/dist/modules/corecompiler/original/webWorker/childWebWorker.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ #### 2.1.18
2
+ - `fix` 修复 当使用 ssss/less @import时重复上传内容的问题
3
+ #### 2.1.17
4
+ - `fix` 修复 多端构建 packOptions 不生效
1
5
  #### 2.1.16
2
6
  - `fix` 修复 COS 上报失败的问题
3
7
  #### 2.1.15
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.18
11
+ - `fix` 修复 当使用 ssss/less @import时重复上传内容的问题
12
+ #### 2.1.17
13
+ - `fix` 修复 多端构建 packOptions 不生效
10
14
  #### 2.1.16
11
15
  - `fix` 修复 COS 上报失败的问题
12
16
  #### 2.1.15
@@ -1,5 +1,5 @@
1
1
  import { IProject } from '../types';
2
- export declare const CI_VERSION = "2.1.17";
2
+ export declare const CI_VERSION = "2.1.18";
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;
@@ -2,4 +2,5 @@ export declare const PLATFORM: {
2
2
  'mini-android': string;
3
3
  'mini-ios': string;
4
4
  'mini-weixin': string;
5
+ 'mini-ohos': string;
5
6
  };
@@ -31,4 +31,5 @@ export declare enum EChildProcessStatus {
31
31
  export declare const SUICIDE_TIME: {
32
32
  devtools: number;
33
33
  'miniprogram-ci': number;
34
+ webide: number;
34
35
  };
@@ -13,6 +13,7 @@ export declare class SummerCompiler extends BaseCoreCompiler {
13
13
  private devtoolMessagehub;
14
14
  private analyzer;
15
15
  private _filterFactory?;
16
+ private onInitFinished?;
16
17
  readonly isSummer = true;
17
18
  subProcessManager: SubProcessProxy | undefined;
18
19
  private promiseCache;
@@ -23,7 +24,7 @@ export declare class SummerCompiler extends BaseCoreCompiler {
23
24
  private _eventAdded;
24
25
  private _locale;
25
26
  private devCodeCacheByPath;
26
- constructor(project: MiniProgramCore.IPreCompileProject, cachePath: string, projectInfo: MiniProgramDevtools.IDevtoolsProjectInfo, devtoolMessagehub: IMessageHub, analyzer: Analyzer | null, _filterFactory?: MiniProgramDevtools.IFilterFactory | undefined);
27
+ constructor(project: MiniProgramCore.IPreCompileProject, cachePath: string, projectInfo: MiniProgramDevtools.IDevtoolsProjectInfo, devtoolMessagehub: IMessageHub, analyzer: Analyzer | null, _filterFactory?: MiniProgramDevtools.IFilterFactory | undefined, onInitFinished?: ((e?: Error) => void) | undefined);
27
28
  get status(): MiniProgramDevtools.ICompilerStatus | undefined;
28
29
  protected init(): Promise<void>;
29
30
  private loadStatus;
@@ -17,6 +17,7 @@ export interface IBuilderOptions {
17
17
  targetPlatformDefines?: MiniProgramCore.ITargetPlatformDefine;
18
18
  outputDir?: string;
19
19
  filterFactory?: MiniProgramDevtools.IFilterFactory;
20
+ onInitSummerCompilerFinished?: (e?: Error) => void;
20
21
  }
21
22
  export declare class Builder {
22
23
  originProject: MiniProgramCI.IProject;
@@ -38,6 +39,7 @@ export declare class Builder {
38
39
  getPreCompiler(): Promise<PreCompiler>;
39
40
  getSummerCompiler(): Promise<any>;
40
41
  private _getSummerCompiler;
42
+ onInitSummerCompilerFinished(e?: Error): void;
41
43
  ready(): Promise<any>;
42
44
  init(): Promise<void>;
43
45
  getNativeCompiler(): Promise<NativeCompiler>;
@@ -34,7 +34,9 @@ declare class buildCloudManager {
34
34
  private updateBundleIcons;
35
35
  updateIOSIcons(projectPath: string, demoIpaPath: string, miniappCacheDirPath: string, iosMiniappJson: MiniProgramCore.IStringKeyMap, isPublish: boolean, recorder: Recorder, inLandun?: boolean, cacheAssetCarPath?: string): Promise<void>;
36
36
  replaceLaunchScreenImage(storyboardPath: string, newScreenImagePath: string, oldScreenImageName: string, recorder: Recorder, projectPath: string, demoIpaPath: string): string | undefined;
37
+ replaceLaunchScreenVideo(newScreenVideoPath: string, recorder: Recorder, projectPath: string, demoIpaPath: string): string | undefined;
37
38
  updateSplashScreen(projectPath: string, demoIpaPath: string, iosMiniappJson: MiniProgramCore.IStringKeyMap, recorder: Recorder, theme: ITheme | undefined, i18nInfo: II18NInfo): Promise<void>;
39
+ updateSplashScreenVideo(projectPath: string, demoIpaPath: string, iosMiniappJson: MiniProgramCore.IStringKeyMap, recorder: Recorder, i18nInfo: II18NInfo): Promise<void>;
38
40
  genUseExtendedSdk(iosMiniappJson: MiniProgramCore.IStringKeyMap, debugInfo?: IMiniApp.IDebugInfo): MiniProgramCore.IStringKeyMap<any>;
39
41
  updateExtendedSdk(bindAppInfo: MiniProgramCore.IStringKeyMap, demoIpaPath: string, sdkPath: string, arch: string, iosMiniappJson: MiniProgramCore.IStringKeyMap, debugInfo: IMiniApp.IDebugInfo | undefined, recorder: Recorder): Promise<void>;
40
42
  updatePrivacyInfo(demoIpaPath: string, iosMiniappJson: MiniProgramCore.IStringKeyMap, recorder: Recorder): Promise<void>;
@@ -12,6 +12,7 @@ interface IProjectMaterialPathMap {
12
12
  privacyConfirmButtonImage: string;
13
13
  icons: string[];
14
14
  splashScreen: string;
15
+ splashScreenVideo: string;
15
16
  p12: string;
16
17
  profile: string;
17
18
  tpnsProfile?: string;
@@ -162,6 +162,7 @@ interface IOriginAppJSON {
162
162
  navigationBarFit?: 'float' | 'squeezed';
163
163
  };
164
164
  lazyCodeLoading?: 'requiredComponents';
165
+ lazyCodeLoadingLegacy?: boolean;
165
166
  enablePassiveEvent?: boolean | {
166
167
  [key: string]: boolean;
167
168
  };
@@ -203,6 +204,7 @@ interface IOriginAppJSON {
203
204
  useAuthorizePage?: boolean;
204
205
  };
205
206
  __usePrivacyCheck__?: boolean;
207
+ keepContextPageInCycleJump?: boolean;
206
208
  }
207
209
  export interface IAppJSON extends IOriginAppJSON {
208
210
  pages: Array<string>;
@@ -1,5 +1,5 @@
1
1
  export interface ISkeletonConfig {
2
- loading?: 'spin' | 'chiaroscuro' | 'shine';
2
+ loading?: 'spin' | 'chiaroscuro' | 'shine' | '';
3
3
  outline?: {
4
4
  remain: boolean;
5
5
  replace: string;
@@ -10,7 +10,7 @@ export declare namespace MiniProgramCore {
10
10
  type ITargetPlatformDefine = {
11
11
  [key: string]: any;
12
12
  };
13
- type ITargetPlatform = 'mini-android' | 'mini-ios' | 'mini-weixin';
13
+ type ITargetPlatform = 'mini-android' | 'mini-ios' | 'mini-weixin' | 'mini-ohos';
14
14
  type IPreRunEnv = 'main process' | 'summer cp' | 'worker cp';
15
15
  interface IConditionCompileInfo {
16
16
  targetPlatform?: ITargetPlatform;
@@ -1,3 +1,3 @@
1
- export declare function shouldInspectCompiler(): boolean;
2
- export declare function shouldRunInMainProcess(): boolean;
3
- export declare function shouldNotRunInWorker(): boolean;
1
+ export declare function shouldInspectCompiler(): Promise<boolean>;
2
+ export declare function shouldRunInMainProcess(): Promise<boolean>;
3
+ export declare function shouldNotRunInWorker(): Promise<boolean>;
@@ -7,7 +7,8 @@ export declare const miniAppPlatformMap: {
7
7
  export declare enum PLATFORM {
8
8
  ANDROID = "mini-android",
9
9
  IOS = "mini-ios",
10
- PLUGIN = "mini-plugin"
10
+ PLUGIN = "mini-plugin",
11
+ OHOS = "mini-ohos"
11
12
  }
12
13
  export interface IAppMiniappJSON {
13
14
  mockWithWxLoginToken?: string;
@@ -179,6 +180,7 @@ export type IMiniappJSON = IOldMiniappJSON | INewMiniappJSON;
179
180
  export declare function identityServiceConfigToMiniAppJSON(pagePath: string, appMiniappJSON?: IAppMiniappJSON): IAppMiniappJSON;
180
181
  export declare function getRawMiniappJson(projectPath: string): any;
181
182
  export declare function getMiniappJson(projectPath: string, targetPlatform?: string): any;
183
+ export declare function tryGetOhosMiniappJson(projectPath: string): any;
182
184
  export declare function tryGetAndroidMiniappJson(projectPath: string): any;
183
185
  export declare function tryGetIOSMiniappJson(projectPath: string): any;
184
186
  export declare function tryGetPluginMiniappJson(projectPath: string): IMiniPluginMiniappJson;
@@ -1,5 +1,5 @@
1
1
  import { MiniProgramCore, MiniProgramDevtools } from '../types';
2
- import { Analyzer } from '../common/code-analyse';
2
+ import { Analyzer, IModule } from '../common/code-analyse';
3
3
  declare class PackOptionsHelper {
4
4
  private packOptionIgnores;
5
5
  private packOptionIncludes;
@@ -26,6 +26,7 @@ declare class PackOptionsHelper {
26
26
  isFileIncluded(file: string, includes?: MiniProgramDevtools.IProjectConfigPackOption[]): any;
27
27
  isIgnoreByUnusedFiles(file: string, production?: boolean): boolean;
28
28
  getUnusedFiles(): Set<string>;
29
+ isScssOnlyImportedByFile(module: IModule): boolean;
29
30
  initUnusedFiles(project: MiniProgramCore.IPreCompileProject, analyzer: Analyzer | null, production?: boolean): Promise<void>;
30
31
  }
31
32
  declare const _default: PackOptionsHelper;