miniprogram-ci 2.1.16 → 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.
- package/CHANGELOG.md +4 -0
- package/README.md +4 -0
- package/dist/@types/config/config.d.ts +1 -1
- package/dist/@types/config/define.d.ts +1 -0
- package/dist/@types/modules/corecompiler/original/workerThread/config.d.ts +1 -0
- package/dist/@types/modules/corecompiler/summerCompiler.d.ts +2 -1
- package/dist/@types/modules/index.d.ts +2 -0
- package/dist/@types/modules/nativecompiler/ios/buildCloud.d.ts +2 -0
- package/dist/@types/modules/nativecompiler/ios/index.d.ts +1 -0
- package/dist/@types/project/ciProject.d.ts +7 -3
- package/dist/@types/schema/@types/appjson.d.ts +2 -0
- package/dist/@types/schema/@types/projectconfigjson.d.ts +1 -1
- package/dist/@types/types/core.d.ts +1 -1
- package/dist/@types/utils/debug.d.ts +3 -3
- package/dist/@types/utils/miniappJson.d.ts +3 -1
- package/dist/@types/utils/packOptionsHelper.d.ts +2 -1
- package/dist/ci/android-miniapp-toolkit/dist/index.js +1 -1
- package/dist/ci/build-apk.js +1 -1
- package/dist/ci/build-ipa.js +1 -1
- package/dist/config/config.js +1 -1
- package/dist/config/define.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/config.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/index.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/workerManager.js +1 -1
- package/dist/modules/corecompiler/processHandler.js +1 -1
- package/dist/modules/corecompiler/summer/pluginDriver.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/sass.js +1 -1
- package/dist/modules/corecompiler/summerCompiler.js +1 -1
- package/dist/modules/createSummer.js +1 -1
- package/dist/modules/index.js +1 -1
- package/dist/modules/nativecompiler/ios/buildCloud.js +1 -1
- package/dist/modules/nativecompiler/ios/index.js +1 -1
- package/dist/modules/precompiler/conditioncompile/define.js +1 -1
- package/dist/modules/precompiler/conditioncompile/index.js +1 -1
- package/dist/project/ciProject.js +1 -1
- package/dist/schema/dist/app.js +29 -1
- package/dist/schema/dist/projectconfig.js +2 -1
- package/dist/static/scripts/resignIpa +1 -1
- package/dist/utils/debug.js +1 -1
- package/dist/utils/miniappJson.js +1 -1
- package/dist/utils/packOptionsHelper.js +1 -1
- package/dist/utils/subprocess/processManager.js +1 -1
- package/dist/utils/subprocess/processService.js +1 -1
- package/package.json +1 -1
- package/dist/@types/modules/corecompiler/original/webWorker/WebWorkerInstance.d.ts +0 -1
- package/dist/@types/modules/corecompiler/original/webWorker/childWebWorker.d.ts +0 -1
- package/dist/modules/corecompiler/original/webWorker/WebWorkerInstance.js +0 -1
- package/dist/modules/corecompiler/original/webWorker/childWebWorker.js +0 -1
package/CHANGELOG.md
CHANGED
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
|
|
@@ -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>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MiniProgramCore } from '../types';
|
|
1
|
+
import { MiniProgramCore, MiniProgramDevtools } from '../types';
|
|
2
2
|
import { BaseProject } from './baseProject';
|
|
3
3
|
type ProjectType = MiniProgramCore.ProjectType;
|
|
4
4
|
export interface ICreateProjectOptions {
|
|
@@ -8,16 +8,20 @@ export interface ICreateProjectOptions {
|
|
|
8
8
|
privateKey?: string;
|
|
9
9
|
privateKeyPath?: string;
|
|
10
10
|
ignores?: string[];
|
|
11
|
-
targetPlatform?:
|
|
11
|
+
targetPlatform?: MiniProgramCore.ITargetPlatform;
|
|
12
12
|
compileDefines?: {
|
|
13
13
|
[key: string]: string;
|
|
14
14
|
};
|
|
15
|
+
packOptions?: {
|
|
16
|
+
ignore: MiniProgramDevtools.IProjectConfigPackOption[];
|
|
17
|
+
include: MiniProgramDevtools.IProjectConfigPackOption[];
|
|
18
|
+
};
|
|
15
19
|
}
|
|
16
20
|
export { getProjectAttr, } from '../ci/projectattr';
|
|
17
21
|
export declare class CIProject extends BaseProject {
|
|
18
22
|
private _project;
|
|
19
23
|
private _miniappAttr?;
|
|
20
|
-
|
|
24
|
+
targetPlatform?: MiniProgramCore.ITargetPlatform;
|
|
21
25
|
constructor(options: ICreateProjectOptions);
|
|
22
26
|
get project(): BaseProject;
|
|
23
27
|
init(): Promise<void>;
|
|
@@ -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>;
|
|
@@ -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;
|