miniprogram-ci 2.0.9 → 2.0.11
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 +5 -0
- package/README.md +5 -0
- package/dist/@types/ci/upload.d.ts +0 -1
- package/dist/@types/ci/utils/progressupdate.d.ts +2 -0
- package/dist/@types/common/code-analyse/index.d.ts +1 -0
- package/dist/@types/config/config.d.ts +1 -1
- package/dist/@types/modules/corecompiler/baseCompiler.d.ts +5 -0
- package/dist/@types/modules/corecompiler/original/validate/schemaValidate.d.ts +1 -1
- package/dist/@types/modules/corecompiler/original/workerThread/task/minifywxml.d.ts +21 -25
- package/dist/@types/modules/corecompiler/originalCompiler.d.ts +1 -0
- package/dist/@types/modules/corecompiler/processHandler.d.ts +2 -21
- package/dist/@types/modules/corecompiler/summer/graph/basegraph.d.ts +1 -0
- package/dist/@types/modules/corecompiler/summer/module.d.ts +20 -14
- package/dist/@types/modules/corecompiler/summerCompiler.d.ts +5 -4
- package/dist/@types/modules/index.d.ts +2 -0
- package/dist/@types/modules/nativecompiler/index.d.ts +1 -0
- package/dist/@types/modules/nativecompiler/ios/buildCloud.d.ts +9 -2
- package/dist/@types/modules/nativecompiler/ios/index.d.ts +2 -0
- package/dist/@types/modules/nativecompiler/nativeCompiler.d.ts +3 -0
- package/dist/@types/modules/precompiler/conditioncompile/index.d.ts +3 -2
- package/dist/@types/modules/precompiler/index.d.ts +3 -2
- package/dist/@types/schema/@types/appjson.d.ts +215 -0
- package/dist/@types/schema/@types/extjson.d.ts +82 -0
- package/dist/@types/schema/@types/gamejson.d.ts +55 -0
- package/dist/@types/schema/@types/pagejson.d.ts +47 -0
- package/dist/@types/schema/@types/pluginjson.d.ts +17 -0
- package/dist/@types/schema/@types/pluginpagejson.d.ts +5 -0
- package/dist/@types/schema/@types/projectconfigjson.d.ts +194 -0
- package/dist/@types/schema/@types/projectprivateconfigjson.d.ts +114 -0
- package/dist/@types/schema/@types/sitemapjson.d.ts +10 -0
- package/dist/@types/schema/@types/themejson.d.ts +8 -0
- package/dist/@types/schema/src/index.d.ts +60 -0
- package/dist/@types/types/ci.d.ts +1 -1
- package/dist/@types/types/core.d.ts +3 -3
- package/dist/@types/types/devtools.d.ts +22 -3
- package/dist/@types/types/miniapp/index.d.ts +5 -0
- package/dist/@types/types/summer.d.ts +2 -0
- package/dist/@types/utils/messageHub.d.ts +2 -2
- package/dist/@types/utils/miniapp-builder.d.ts +13 -3
- package/dist/@types/utils/progressRecorder.d.ts +3 -1
- package/dist/@types/utils/subprocess/processManager.d.ts +4 -1
- package/dist/@types/utils/taskstatus.d.ts +3 -3
- package/dist/@types/utils/tools.d.ts +1 -0
- package/dist/@types/utils/usbProcess.d.ts +3 -0
- package/dist/ci/getCompiledResult.js +1 -1
- package/dist/ci/getcompiler.js +1 -1
- package/dist/ci/upload.js +1 -1
- package/dist/ci/utils/progressupdate.js +1 -0
- package/dist/common/code-analyse/index.js +1 -1
- package/dist/config/config.js +1 -1
- package/dist/modules/corecompiler/baseCompiler.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/task/index.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/task/minifywxml.js +1 -1
- package/dist/modules/corecompiler/originalCompiler.js +1 -1
- package/dist/modules/corecompiler/processHandler.js +1 -1
- package/dist/modules/corecompiler/summer/graph/appgraph.js +1 -1
- package/dist/modules/corecompiler/summer/graph/basegraph.js +1 -1
- package/dist/modules/corecompiler/summer/module.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/base/es6module.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/base/javascript.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/base/swc.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/base/wxss.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/enhance.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/less.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/minifywxml.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/sass.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/terser.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/typescript.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/worklet.js +1 -1
- package/dist/modules/corecompiler/summer/summer.js +1 -1
- package/dist/modules/corecompiler/summer/worker.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/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/nativecompiler/nativeCompiler.js +1 -1
- package/dist/modules/nativecompiler/nativeEntryProcess.js +1 -1
- package/dist/modules/precompiler/conditioncompile/index.js +1 -1
- package/dist/modules/precompiler/index.js +1 -1
- package/dist/project/advance/precompileProject.js +1 -1
- package/dist/project/baseProject.js +1 -1
- package/dist/schema/@types/appjson.js +1 -0
- package/dist/schema/@types/extjson.js +1 -0
- package/dist/schema/@types/gamejson.js +1 -0
- package/dist/schema/@types/pagejson.js +1 -0
- package/dist/schema/@types/pluginjson.js +1 -0
- package/dist/schema/@types/pluginpagejson.js +1 -0
- package/dist/schema/@types/projectconfigjson.js +1 -0
- package/dist/schema/@types/projectprivateconfigjson.js +1 -0
- package/dist/schema/@types/sitemapjson.js +1 -0
- package/dist/schema/@types/themejson.js +1 -0
- package/dist/schema/dist/app.js +1 -1
- package/dist/schema/dist/ext.js +1 -1
- package/dist/schema/dist/game.js +1 -1
- package/dist/schema/dist/page.js +1 -1
- package/dist/schema/dist/plugin.js +1 -1
- package/dist/schema/dist/pluginpage.js +1 -1
- package/dist/schema/dist/projectconfig.js +37 -1
- package/dist/schema/dist/projectprivateconfig.js +1 -1
- package/dist/schema/dist/sitemap.js +1 -1
- package/dist/schema/dist/theme.js +1 -1
- package/dist/schema/src/index.js +1 -0
- package/dist/utils/codesign.js +1 -1
- package/dist/utils/cp.js +1 -1
- package/dist/utils/miniapp-builder.js +1 -1
- package/dist/utils/miniappJson.js +1 -1
- package/dist/utils/progressRecorder.js +1 -1
- package/dist/utils/subprocess/processManager.js +1 -1
- package/dist/utils/taskstatus.js +1 -1
- package/dist/utils/tools.js +1 -1
- package/dist/utils/usbProcess.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -9,7 +9,6 @@ interface IUploadOptions {
|
|
|
9
9
|
threads?: number;
|
|
10
10
|
useCOS?: boolean;
|
|
11
11
|
onProgressUpdate?: (task: MiniProgramCI.ITaskStatus | string) => void;
|
|
12
|
-
allowIgnoreUnusedFiles?: boolean;
|
|
13
12
|
}
|
|
14
13
|
export interface IInnerUploadOptions extends IUploadOptions {
|
|
15
14
|
test?: boolean;
|
|
@@ -31,6 +31,11 @@ export declare abstract class BaseCoreCompiler {
|
|
|
31
31
|
disableUseStrict?: boolean;
|
|
32
32
|
compileWorklet?: boolean;
|
|
33
33
|
};
|
|
34
|
+
resultType?: MiniProgramCore.IResultType;
|
|
35
|
+
}): Promise<any>;
|
|
36
|
+
compileJSList(options: {
|
|
37
|
+
root: string;
|
|
38
|
+
fileList: string[];
|
|
34
39
|
}): Promise<any>;
|
|
35
40
|
compile(options: MiniProgramCore.ICompileOptions): any;
|
|
36
41
|
clearCache(): void;
|
|
@@ -1,32 +1,34 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { MiniProgramDevtools } from '../../../../../types';
|
|
3
2
|
interface ICompileData {
|
|
4
|
-
|
|
5
|
-
root: string;
|
|
3
|
+
code: string | Buffer;
|
|
6
4
|
filePath: string;
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
root?: string;
|
|
6
|
+
setting?: IMinifySetting;
|
|
9
7
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
OTHERS = 3
|
|
8
|
+
export interface IMinifySetting {
|
|
9
|
+
collapseWhitespace?: boolean;
|
|
10
|
+
conservativeCollapse?: boolean;
|
|
11
|
+
preserveLineBreaks?: boolean;
|
|
15
12
|
}
|
|
16
|
-
declare class
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
export declare class TemplateTokenizer {
|
|
14
|
+
private tokens?;
|
|
15
|
+
constructor(src: string, path: string);
|
|
16
|
+
toString(): string;
|
|
17
|
+
private generateTokens;
|
|
18
|
+
private m_pSrc;
|
|
19
|
+
private path;
|
|
20
|
+
private machine;
|
|
20
21
|
}
|
|
21
|
-
declare class
|
|
22
|
+
export declare class StyleAttrValueTokenizer {
|
|
23
|
+
private tokens?;
|
|
22
24
|
constructor(src: string, path: string);
|
|
23
|
-
|
|
25
|
+
toString(): string;
|
|
26
|
+
private generateTokens;
|
|
24
27
|
private m_pSrc;
|
|
25
28
|
private path;
|
|
26
29
|
private machine;
|
|
27
30
|
}
|
|
28
|
-
declare function
|
|
29
|
-
declare function minifyWXML(data: ICompileData): Promise<{
|
|
31
|
+
export declare function minifyWXML(data: ICompileData): Promise<{
|
|
30
32
|
error: null;
|
|
31
33
|
code: string;
|
|
32
34
|
} | {
|
|
@@ -37,10 +39,4 @@ declare function minifyWXML(data: ICompileData): Promise<{
|
|
|
37
39
|
};
|
|
38
40
|
code?: undefined;
|
|
39
41
|
}>;
|
|
40
|
-
|
|
41
|
-
minifyWXML: typeof minifyWXML;
|
|
42
|
-
Tokenizer: typeof Tokenizer;
|
|
43
|
-
generateWXMLFromTokens: typeof generateWXMLFromTokens;
|
|
44
|
-
Token: typeof Token;
|
|
45
|
-
};
|
|
46
|
-
export = _default;
|
|
42
|
+
export {};
|
|
@@ -1,24 +1,5 @@
|
|
|
1
1
|
import { MiniProgramDevtools } from '../../types';
|
|
2
|
-
interface IProcessMsg {
|
|
3
|
-
type: 'progress';
|
|
4
|
-
id: number | string;
|
|
5
|
-
taskId: number;
|
|
6
|
-
status: string;
|
|
7
|
-
message: string;
|
|
8
|
-
}
|
|
9
|
-
interface IResponseMsg {
|
|
10
|
-
type: 'response';
|
|
11
|
-
id: number | string;
|
|
12
|
-
data: any;
|
|
13
|
-
error?: {
|
|
14
|
-
code: number;
|
|
15
|
-
message: string;
|
|
16
|
-
stack: string;
|
|
17
|
-
path: string;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
type ICallbackMsg = IProcessMsg | IResponseMsg;
|
|
21
2
|
export declare function initHandler(message: MiniProgramDevtools.InitMsg): Promise<void>;
|
|
22
3
|
export declare function destroy(): Promise<void>;
|
|
23
|
-
export declare
|
|
24
|
-
export
|
|
4
|
+
export declare const onMessage: (fn: (...args: any[]) => any) => void;
|
|
5
|
+
export declare function messageHandler(message: MiniProgramDevtools.SummerProcessMessage): Promise<void>;
|
|
@@ -83,6 +83,7 @@ export declare abstract class BaseGraph {
|
|
|
83
83
|
}): Promise<MiniProgramDevtools.CodeFiles>;
|
|
84
84
|
getProdCodeByFileList(recorder: Recorder, options: {
|
|
85
85
|
fileList: string[];
|
|
86
|
+
resultType?: MiniProgramCore.IResultType;
|
|
86
87
|
}): Promise<MiniProgramDevtools.CodeFiles>;
|
|
87
88
|
abstract getDevCode(recorder: Recorder, options?: MiniProgramDevtools.IPackageCodeOptions): Promise<MiniProgramDevtools.CodeFiles>;
|
|
88
89
|
abstract getProdCode(recorder: Recorder, options?: MiniProgramDevtools.IPackageCodeOptions & MiniProgramCore.ICompileOptions): Promise<MiniProgramDevtools.CodeFiles>;
|
|
@@ -21,23 +21,29 @@ export default class Module {
|
|
|
21
21
|
readonly path: string;
|
|
22
22
|
readonly sourcePath: string;
|
|
23
23
|
fileType: FileType;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
source?: MiniProgramSummer.SourceDescription;
|
|
29
|
-
target?: MiniProgramSummer.GenerateDescription;
|
|
30
|
-
processInfo?: MiniProgramSummer.IPluginProcessInfo[];
|
|
24
|
+
private _jsTag?;
|
|
25
|
+
private _error;
|
|
26
|
+
private loadResult?;
|
|
27
|
+
private generateResultPromise;
|
|
31
28
|
depFiles: string[];
|
|
32
29
|
independentRoot: string;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
loadEnd: number;
|
|
30
|
+
isBabelIgnore: boolean;
|
|
31
|
+
private generatedTS;
|
|
36
32
|
constructor(graph: BaseGraph, path: string, sourcePath: string, fileType: FileType);
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
private transResultType;
|
|
34
|
+
getGeneratedTS(resultType: MiniProgramCore.IResultType): number;
|
|
35
|
+
setError(resultType: MiniProgramCore.IResultType, error: CustomError | Error): void;
|
|
36
|
+
getError(resultType: MiniProgramCore.IResultType): Error | CustomError | undefined;
|
|
37
|
+
getJsTag(): Promise<JsTag | undefined>;
|
|
38
|
+
getSource(): Promise<MiniProgramSummer.SourceDescription>;
|
|
39
|
+
getMd5(): Promise<string>;
|
|
40
|
+
setLoadingPromise(promise: Promise<MiniProgramSummer.ILoadResult>): void;
|
|
41
|
+
getLoadingPromise(): Promise<MiniProgramSummer.ILoadResult> | undefined;
|
|
42
|
+
setGeneratingPromise(resultType: MiniProgramCore.IResultType, promise: Promise<MiniProgramSummer.IGenerateResult>): void;
|
|
43
|
+
getGeneratingPromise(resultType: MiniProgramCore.IResultType): Promise<MiniProgramSummer.IGenerateResult> | undefined;
|
|
44
|
+
getProcessInfo(resultType: MiniProgramCore.IResultType): Promise<MiniProgramSummer.IPluginProcessInfo[] | undefined>;
|
|
45
|
+
toCodeFile(resultType: MiniProgramCore.IResultType): Promise<MiniProgramDevtools.CodeFile | MiniProgramDevtools.CodeError>;
|
|
46
|
+
toGenerateResult(resultType: MiniProgramCore.IResultType): Promise<MiniProgramSummer.IGenerateResult | MiniProgramDevtools.CodeError>;
|
|
41
47
|
toJSON(): MiniProgramSummer.ModuleJSON;
|
|
42
48
|
addWatchFile(file: string): void;
|
|
43
49
|
}
|
|
@@ -15,14 +15,14 @@ export declare class SummerCompiler extends BaseCoreCompiler {
|
|
|
15
15
|
private _filterFactory?;
|
|
16
16
|
readonly isSummer = true;
|
|
17
17
|
subProcessManager: SubProcessProxy | undefined;
|
|
18
|
-
private codeCache;
|
|
19
18
|
private promiseCache;
|
|
20
19
|
private _taskCache;
|
|
21
20
|
private messageHub;
|
|
21
|
+
private progressUpdateFromCompileOptions?;
|
|
22
22
|
_status: MiniProgramDevtools.ICompilerStatus | undefined;
|
|
23
23
|
private _eventAdded;
|
|
24
24
|
private _locale;
|
|
25
|
-
private
|
|
25
|
+
private devCodeCacheByPath;
|
|
26
26
|
constructor(project: MiniProgramCore.IPreCompileProject, cachePath: string, projectInfo: MiniProgramDevtools.IDevtoolsProjectInfo, devtoolMessagehub: IMessageHub, analyzer: Analyzer, _filterFactory?: MiniProgramDevtools.IFilterFactory | undefined);
|
|
27
27
|
get status(): MiniProgramDevtools.ICompilerStatus | undefined;
|
|
28
28
|
protected init(): Promise<void>;
|
|
@@ -41,7 +41,6 @@ export declare class SummerCompiler extends BaseCoreCompiler {
|
|
|
41
41
|
_getPackageFiles: (graphId: import("../../types").MiniProgramCI.ProjectType, root: string, resultType?: MiniProgramCore.IResultType) => Promise<FileInfo[]>;
|
|
42
42
|
private filterFactory;
|
|
43
43
|
private getCodeByFileList;
|
|
44
|
-
private getCode;
|
|
45
44
|
getExtJSON(): Promise<ExtJSON.IExtJSON>;
|
|
46
45
|
getAppJSON(): Promise<any>;
|
|
47
46
|
getGameJSON(): Promise<any>;
|
|
@@ -88,7 +87,6 @@ export declare class SummerCompiler extends BaseCoreCompiler {
|
|
|
88
87
|
compileJSList(options: {
|
|
89
88
|
root: string;
|
|
90
89
|
fileList: string[];
|
|
91
|
-
babelRoot: string;
|
|
92
90
|
}): Promise<{
|
|
93
91
|
isLargeFile?: boolean | undefined;
|
|
94
92
|
isBabelIgnore?: boolean | undefined;
|
|
@@ -96,6 +94,7 @@ export declare class SummerCompiler extends BaseCoreCompiler {
|
|
|
96
94
|
filePath: string;
|
|
97
95
|
code: string;
|
|
98
96
|
map: string | import("../../types").MiniProgramSummer.SourceMap | undefined;
|
|
97
|
+
mtime: number | undefined;
|
|
99
98
|
}[]>;
|
|
100
99
|
compileJS(options: {
|
|
101
100
|
root: string;
|
|
@@ -103,6 +102,7 @@ export declare class SummerCompiler extends BaseCoreCompiler {
|
|
|
103
102
|
babelRoot: string;
|
|
104
103
|
sourceCode?: string;
|
|
105
104
|
setting: MiniProgramDevtools.IProjectSetting;
|
|
105
|
+
resultType?: MiniProgramCore.IResultType;
|
|
106
106
|
}): Promise<{
|
|
107
107
|
isLargeFile?: boolean | undefined;
|
|
108
108
|
isBabelIgnore?: boolean | undefined;
|
|
@@ -110,6 +110,7 @@ export declare class SummerCompiler extends BaseCoreCompiler {
|
|
|
110
110
|
filePath: string;
|
|
111
111
|
code: string;
|
|
112
112
|
map: string | import("../../types").MiniProgramSummer.SourceMap | undefined;
|
|
113
|
+
mtime: number | undefined;
|
|
113
114
|
}>;
|
|
114
115
|
compile(options: MiniProgramCore.ICompileOptions): Promise<MiniProgramDevtools.ICompileResult>;
|
|
115
116
|
private compileOther;
|
|
@@ -27,12 +27,14 @@ export declare class Builder {
|
|
|
27
27
|
private _options;
|
|
28
28
|
private _checkReadyTask?;
|
|
29
29
|
private _getSummerCompilerTask?;
|
|
30
|
+
private _getPrecompileProjectTask?;
|
|
30
31
|
private _originalCompiler;
|
|
31
32
|
private _analyzer?;
|
|
32
33
|
constructor(project: MiniProgramCI.IProject, opts: IBuilderOptions);
|
|
33
34
|
getCompiler(): Promise<any>;
|
|
34
35
|
getAnalyzer(): Promise<Analyzer>;
|
|
35
36
|
getPreCompileProject(): Promise<PreCompileProject>;
|
|
37
|
+
private _getPreCompileProject;
|
|
36
38
|
getPreCompiler(): Promise<PreCompiler>;
|
|
37
39
|
getSummerCompiler(): Promise<any>;
|
|
38
40
|
private _getSummerCompiler;
|
|
@@ -28,6 +28,7 @@ export declare class NativeCompiler {
|
|
|
28
28
|
buildAndroidPlugin(opts: IMiniApp.IAndroidBuildPluginArgs): Promise<void>;
|
|
29
29
|
buildIOSPlugin(opts: IMiniApp.IBuildPluginIOSFrameworkArgs): Promise<void>;
|
|
30
30
|
packIOSCloudBuildMaterial(opts: IMiniApp.IIOSBuildCloudGenMaterialArgs): Promise<string>;
|
|
31
|
+
initUSBConnectionProcess(): Promise<void>;
|
|
31
32
|
destroy(): void;
|
|
32
33
|
}
|
|
33
34
|
export {};
|
|
@@ -3,6 +3,12 @@ import { IMiniApp, MiniProgramCore } from '../../../types';
|
|
|
3
3
|
import { IEntitlements } from '../../../utils/codesign';
|
|
4
4
|
import II18NInfo = IMiniApp.II18NInfo;
|
|
5
5
|
type ITheme = 'Light' | 'LightSpecial' | 'Dark' | 'DarkSpecial' | 'Default';
|
|
6
|
+
type IOpenMimeTypes = {
|
|
7
|
+
CFBundleTypeName: string;
|
|
8
|
+
LSHandlerRank: 'Owner' | 'Default' | 'Alternate' | 'None';
|
|
9
|
+
CFBundleTypeRole: 'Editor' | 'Viewer' | 'Shell' | 'None';
|
|
10
|
+
LSItemContentTypes: string[];
|
|
11
|
+
}[];
|
|
6
12
|
export declare const remoteBuildProjectMaterialAbsoluteCacheDir = "__absoluteFile";
|
|
7
13
|
export interface IBuildCloudResult {
|
|
8
14
|
projectPath: string;
|
|
@@ -21,6 +27,7 @@ declare class buildCloudManager {
|
|
|
21
27
|
updatePrivacyBackgroundImage(projectPath: string, demoIpaPath: string, recorder: Recorder, type: 'contentViewImage' | 'cancelButtonImage' | 'confirmButtonImage', imagePath: string): void;
|
|
22
28
|
updateIOSInfoPlistInfo(projectPath: string, bindAppInfo: MiniProgramCore.IStringKeyMap, demoIpaPath: string, iosMiniappJson: MiniProgramCore.IStringKeyMap, recorder: Recorder, i18nInfo: II18NInfo): Promise<any>;
|
|
23
29
|
getBundleIdentifier(mobileapp_info: MiniProgramCore.IStringKeyMap): any;
|
|
30
|
+
validateCFBundleDocumentTypes(openMimeTypes: IOpenMimeTypes, recorder: Recorder): boolean;
|
|
24
31
|
useGDT(iosMiniappJson: MiniProgramCore.IStringKeyMap): any;
|
|
25
32
|
updateIOSAppConfigPlistInfo(projectPath: string, bindAppInfo: MiniProgramCore.IStringKeyMap, demoIpaPath: string, iosMiniappJson: MiniProgramCore.IStringKeyMap, sdkPath: string, isSimulator: boolean, recorder: Recorder, theme: ITheme | undefined, i18nInfo: II18NInfo): Promise<void>;
|
|
26
33
|
updateIOSAppexInfoPlistInfo(bindAppInfo: MiniProgramCore.IStringKeyMap, demoIpaPath: string, iosMiniappJson: MiniProgramCore.IStringKeyMap, CFBundleVersion: number, recorder: Recorder): Promise<void>;
|
|
@@ -28,8 +35,8 @@ declare class buildCloudManager {
|
|
|
28
35
|
updateIOSIcons(projectPath: string, demoIpaPath: string, miniappCacheDirPath: string, iosMiniappJson: MiniProgramCore.IStringKeyMap, isPublish: boolean, recorder: Recorder): Promise<void>;
|
|
29
36
|
replaceLaunchScreenImage(storyboardPath: string, newScreenImagePath: string, oldScreenImageName: string, recorder: Recorder, projectPath: string, demoIpaPath: string): string | undefined;
|
|
30
37
|
updateSplashScreen(projectPath: string, demoIpaPath: string, iosMiniappJson: MiniProgramCore.IStringKeyMap, recorder: Recorder, theme: ITheme | undefined, i18nInfo: II18NInfo): Promise<void>;
|
|
31
|
-
genUseExtendedSdk(iosMiniappJson: MiniProgramCore.IStringKeyMap): MiniProgramCore.IStringKeyMap<any>;
|
|
32
|
-
updateExtendedSdk(bindAppInfo: MiniProgramCore.IStringKeyMap, demoIpaPath: string, sdkPath: string, arch: string, iosMiniappJson: MiniProgramCore.IStringKeyMap, recorder: Recorder): Promise<void>;
|
|
38
|
+
genUseExtendedSdk(iosMiniappJson: MiniProgramCore.IStringKeyMap, debugInfo?: IMiniApp.IDebugInfo): MiniProgramCore.IStringKeyMap<any>;
|
|
39
|
+
updateExtendedSdk(bindAppInfo: MiniProgramCore.IStringKeyMap, demoIpaPath: string, sdkPath: string, arch: string, iosMiniappJson: MiniProgramCore.IStringKeyMap, debugInfo: IMiniApp.IDebugInfo | undefined, recorder: Recorder): Promise<void>;
|
|
33
40
|
updatePrivacyInfo(demoIpaPath: string, iosMiniappJson: MiniProgramCore.IStringKeyMap, recorder: Recorder): Promise<void>;
|
|
34
41
|
updatePlugin(demoIpaPath: string, pluginDirList: IMiniApp.IIOSPluginDir[], projectPath: string, iosMiniappJson: MiniProgramCore.IStringKeyMap, miniappCacheDirPath: string, isPublish: boolean, CFBundleVersion: string, recorder: Recorder): Promise<void>;
|
|
35
42
|
copyUserResourcePathIntoPlugins(pluginId: string, projectPath: string, configResourcePath: string, distFrameworkPath: string, recorder: Recorder): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Recorder } from '../../../utils/progressRecorder';
|
|
2
2
|
import { IMiniApp } from '../../../types';
|
|
3
|
+
import { IGetMiniAppBuilderOts } from '../../../utils/miniapp-builder';
|
|
3
4
|
import II18NInfo = IMiniApp.II18NInfo;
|
|
4
5
|
interface IProjectMaterialPathMap {
|
|
5
6
|
projectMiniappJson: string;
|
|
@@ -32,6 +33,7 @@ export declare class IOSUtils {
|
|
|
32
33
|
genProjectMaterialMap(projectPath: string, matrialDistPath: string, buildArgs: IMiniApp.IIOSBuildCloudGenMaterialArgs, recorder: Recorder): Promise<IProjectMaterialPathMap>;
|
|
33
34
|
codesignIOSApp(args: IMiniApp.CodesignIpaArgs, recorder: Recorder): Promise<void>;
|
|
34
35
|
packIOSCloudBuildMaterial(args: IMiniApp.IIOSBuildCloudGenMaterialArgs, recorder: Recorder): Promise<void>;
|
|
36
|
+
initUSBConnectionProcess(opts: IGetMiniAppBuilderOts, recorder: Recorder): Promise<void>;
|
|
35
37
|
private launchSimulator;
|
|
36
38
|
private runOnSimulatorCloud;
|
|
37
39
|
private runOnSimulatorLocal;
|
|
@@ -36,6 +36,9 @@ export declare class NativeCompiler {
|
|
|
36
36
|
targetPlatform: MiniProgramCore.ITargetPlatform;
|
|
37
37
|
opts: IMiniApp.IIOSBuildCloudGenMaterialArgs;
|
|
38
38
|
}, recorder: Recorder): Promise<any>;
|
|
39
|
+
initUSBConnectionProcess(data: {
|
|
40
|
+
targetPlatform: MiniProgramCore.ITargetPlatform;
|
|
41
|
+
}, recorder: Recorder): Promise<any>;
|
|
39
42
|
codesignIOSApp(data: {
|
|
40
43
|
targetPlatform: MiniProgramCore.ITargetPlatform;
|
|
41
44
|
opts: IMiniApp.CodesignIpaArgs;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { MiniProgramCI, MiniProgramCore } from '../../../types';
|
|
3
3
|
import { BaseConditionCompiler } from './compiler/base';
|
|
4
|
-
import { IMessageHub } from '../../../utils/messageHub';
|
|
4
|
+
import { IConsoleDisplay, IMessageHub } from '../../../utils/messageHub';
|
|
5
5
|
interface IConditionCompiler {
|
|
6
6
|
targetPlatform: MiniProgramCore.ITargetPlatform;
|
|
7
7
|
targetPlatformDefines?: MiniProgramCore.ITargetPlatformDefine;
|
|
@@ -12,7 +12,8 @@ export declare class ConditionCompiler {
|
|
|
12
12
|
};
|
|
13
13
|
project: MiniProgramCI.IProject;
|
|
14
14
|
devtoolMessagehub?: IMessageHub;
|
|
15
|
-
|
|
15
|
+
consoleDisplay?: IConsoleDisplay;
|
|
16
|
+
constructor(project: MiniProgramCI.IProject, devtoolMessagehub: IMessageHub | undefined, consoleDisplay: IConsoleDisplay | undefined);
|
|
16
17
|
getCompiler(extname: string, opts: IConditionCompiler): BaseConditionCompiler;
|
|
17
18
|
shouldCompile(filePath: string): boolean;
|
|
18
19
|
compileFile(filePath: string, opts?: IConditionCompiler): Buffer;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { MiniProgramCI, MiniProgramCore } from '../../types';
|
|
2
2
|
import { PreCompileProject } from '../../project/advance/precompileProject';
|
|
3
|
-
import { IMessageHub } from '../../utils/messageHub';
|
|
3
|
+
import { IConsoleDisplay, IMessageHub } from '../../utils/messageHub';
|
|
4
4
|
export declare class PreCompiler {
|
|
5
5
|
project: MiniProgramCI.IProject;
|
|
6
6
|
devtoolMessagehub?: IMessageHub;
|
|
7
|
-
|
|
7
|
+
consoleDisplay?: IConsoleDisplay;
|
|
8
|
+
constructor(project: MiniProgramCI.IProject, devtoolMessagehub: IMessageHub | undefined, consoleDisplay: IConsoleDisplay | undefined);
|
|
8
9
|
getPreCompileProject(opts?: MiniProgramCore.IConditionCompileInfo): Promise<PreCompileProject>;
|
|
9
10
|
}
|
|
10
11
|
export { ConditionCompiler } from './conditioncompile';
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
export interface IPluginConfig {
|
|
2
|
+
provider: string;
|
|
3
|
+
version: string;
|
|
4
|
+
path?: string;
|
|
5
|
+
export?: string;
|
|
6
|
+
genericsImplementation?: {
|
|
7
|
+
[pageName: string]: {
|
|
8
|
+
[componentName: string]: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export interface ISubPackageItem {
|
|
13
|
+
independent?: boolean;
|
|
14
|
+
name?: string;
|
|
15
|
+
entry?: string;
|
|
16
|
+
root: string;
|
|
17
|
+
pages: string[];
|
|
18
|
+
plugins?: {
|
|
19
|
+
[alias: string]: IPluginConfig;
|
|
20
|
+
};
|
|
21
|
+
useExtendedLib?: {
|
|
22
|
+
[key: string]: boolean | string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export interface IWindow {
|
|
26
|
+
backgroundColorTop?: string;
|
|
27
|
+
backgroundColorBottom?: string;
|
|
28
|
+
backgroundColorContent?: string;
|
|
29
|
+
backgroundColor?: string;
|
|
30
|
+
enablePullDownRefresh?: boolean;
|
|
31
|
+
navigationBarTextStyle?: 'black' | 'white' | `@${string}`;
|
|
32
|
+
navigationBarTitleText?: string;
|
|
33
|
+
navigationStyle?: 'default' | 'custom';
|
|
34
|
+
backgroundTextStyle?: 'dark' | 'light' | `@${string}`;
|
|
35
|
+
onReachBottomDistance?: number;
|
|
36
|
+
pageOrientation?: 'portrait' | 'auto' | 'landscape';
|
|
37
|
+
navigationBarBackgroundColor?: string;
|
|
38
|
+
renderingMode?: 'seperated' | 'mixed';
|
|
39
|
+
restartStrategy?: 'homePage' | 'homePageAndLatestPage';
|
|
40
|
+
visualEffectInBackground?: 'hidden' | 'none';
|
|
41
|
+
initialRenderingCache?: 'static' | 'dynamic';
|
|
42
|
+
handleWebviewPreload?: 'static' | 'manual' | 'auto';
|
|
43
|
+
homeButton?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface ITabBar {
|
|
46
|
+
custom?: boolean;
|
|
47
|
+
list: Array<{
|
|
48
|
+
pagePath: string;
|
|
49
|
+
text?: string;
|
|
50
|
+
iconPath?: string;
|
|
51
|
+
selectedIconPath?: string;
|
|
52
|
+
renderer?: 'skyline' | 'webview' | 'cover-view';
|
|
53
|
+
}>;
|
|
54
|
+
borderStyle?: 'black' | 'white' | `@${string}`;
|
|
55
|
+
position?: 'bottom' | 'top';
|
|
56
|
+
color?: string;
|
|
57
|
+
selectedColor?: string;
|
|
58
|
+
backgroundColor?: string;
|
|
59
|
+
}
|
|
60
|
+
export interface IAppBar {
|
|
61
|
+
custom?: boolean;
|
|
62
|
+
}
|
|
63
|
+
export interface ISkylineFeatures {
|
|
64
|
+
defaultContentBox?: boolean;
|
|
65
|
+
defaultDisplayBlock?: boolean;
|
|
66
|
+
}
|
|
67
|
+
export interface ISupportMaterial {
|
|
68
|
+
materialType: string;
|
|
69
|
+
name: string;
|
|
70
|
+
desc: string;
|
|
71
|
+
path: string;
|
|
72
|
+
}
|
|
73
|
+
export type IRequirePrivateInfos = Array<'getFuzzyLocation' | 'getLocation' | 'onLocationChange' | 'startLocationUpdate' | 'startLocationUpdateBackground' | 'chooseLocation' | 'choosePoi' | 'chooseAddress'>;
|
|
74
|
+
type IPlatform = 'mini-ios' | 'mini-android' | 'mini-weixin';
|
|
75
|
+
interface IAppJSONStaticConfig {
|
|
76
|
+
pattern: string;
|
|
77
|
+
platforms: IPlatform[];
|
|
78
|
+
}
|
|
79
|
+
interface IOriginAppJSON {
|
|
80
|
+
__warning__?: string;
|
|
81
|
+
window?: IWindow;
|
|
82
|
+
plugins?: {
|
|
83
|
+
[key: string]: IPluginConfig;
|
|
84
|
+
};
|
|
85
|
+
entryPagePath?: string;
|
|
86
|
+
permission?: {
|
|
87
|
+
'scope.userLocation'?: {
|
|
88
|
+
desc: string;
|
|
89
|
+
};
|
|
90
|
+
'scope.userFuzzyLocation'?: {
|
|
91
|
+
desc: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
workers?: string | {
|
|
95
|
+
path: string;
|
|
96
|
+
isSubpackage: boolean;
|
|
97
|
+
};
|
|
98
|
+
subPackages?: Array<ISubPackageItem>;
|
|
99
|
+
subpackages?: Array<ISubPackageItem>;
|
|
100
|
+
preloadRule?: {
|
|
101
|
+
[key: string]: {
|
|
102
|
+
network?: 'all' | 'wifi';
|
|
103
|
+
packages: Array<string>;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
usingComponents?: {
|
|
107
|
+
[key: string]: string;
|
|
108
|
+
};
|
|
109
|
+
componentPlaceholder?: {
|
|
110
|
+
[key: string]: string;
|
|
111
|
+
};
|
|
112
|
+
tabBar?: ITabBar;
|
|
113
|
+
appBar?: IAppBar;
|
|
114
|
+
requiredBackgroundModes?: Array<string>;
|
|
115
|
+
mimeTypeDeclarations?: {
|
|
116
|
+
[key: string]: Array<string>;
|
|
117
|
+
};
|
|
118
|
+
networkTimeout?: {
|
|
119
|
+
request?: number;
|
|
120
|
+
connectSocket?: number;
|
|
121
|
+
uploadFile?: number;
|
|
122
|
+
downloadFile?: number;
|
|
123
|
+
};
|
|
124
|
+
debug?: boolean;
|
|
125
|
+
resizable?: boolean;
|
|
126
|
+
displayMode?: 'mobile' | 'pad' | 'desktop';
|
|
127
|
+
frameset?: boolean;
|
|
128
|
+
functionalPages?: boolean | {
|
|
129
|
+
independent: boolean;
|
|
130
|
+
};
|
|
131
|
+
cloud?: boolean;
|
|
132
|
+
cloudVersion?: string;
|
|
133
|
+
cloudConfig?: {
|
|
134
|
+
gatewayDomain?: string;
|
|
135
|
+
publicKey?: string;
|
|
136
|
+
gatewayId?: string;
|
|
137
|
+
};
|
|
138
|
+
openDataContext?: string;
|
|
139
|
+
openLocationPagePath?: string;
|
|
140
|
+
sitemapLocation?: string;
|
|
141
|
+
serviceProviderTicket?: string;
|
|
142
|
+
style?: 'v2';
|
|
143
|
+
useExtendedLib?: {
|
|
144
|
+
[key: string]: boolean | string;
|
|
145
|
+
};
|
|
146
|
+
entranceDeclare?: {
|
|
147
|
+
locationMessage?: {
|
|
148
|
+
path?: string;
|
|
149
|
+
query?: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
darkmode?: boolean;
|
|
153
|
+
themeLocation?: string;
|
|
154
|
+
theme?: string;
|
|
155
|
+
singlePage?: {
|
|
156
|
+
navigationBarFit?: 'float' | 'squeezed';
|
|
157
|
+
};
|
|
158
|
+
lazyCodeLoading?: 'requiredComponents';
|
|
159
|
+
enablePassiveEvent?: boolean | {
|
|
160
|
+
[key: string]: boolean;
|
|
161
|
+
};
|
|
162
|
+
supportedMaterials?: ISupportMaterial[];
|
|
163
|
+
requireBackgroundModes?: string[];
|
|
164
|
+
embeddedAppIdList?: string[];
|
|
165
|
+
renderer?: "skyline" | "webview";
|
|
166
|
+
resolveAlias?: {
|
|
167
|
+
[key: string]: string;
|
|
168
|
+
};
|
|
169
|
+
debugOptions?: {
|
|
170
|
+
enableFPSPanel?: boolean;
|
|
171
|
+
};
|
|
172
|
+
halfPage?: {
|
|
173
|
+
firstPageNavigationStyle?: 'default' | 'custom';
|
|
174
|
+
};
|
|
175
|
+
requiredPrivateInfos?: IRequirePrivateInfos;
|
|
176
|
+
rendererOptions?: {
|
|
177
|
+
defaultDisplayBlock?: boolean;
|
|
178
|
+
skyline?: {
|
|
179
|
+
disableABTest?: boolean;
|
|
180
|
+
sdkVersionBegin?: string;
|
|
181
|
+
sdkVersionEnd?: string;
|
|
182
|
+
iosVersionBegin?: string;
|
|
183
|
+
iosVersionEnd?: string;
|
|
184
|
+
androidVersionBegin?: string;
|
|
185
|
+
androidVersionEnd?: string;
|
|
186
|
+
} & ISkylineFeatures;
|
|
187
|
+
};
|
|
188
|
+
componentFramework?: 'glass-easel' | 'exparser';
|
|
189
|
+
accountCardPackage?: {
|
|
190
|
+
root: string;
|
|
191
|
+
cardList: Array<{
|
|
192
|
+
type: number;
|
|
193
|
+
componentPath: string;
|
|
194
|
+
}>;
|
|
195
|
+
};
|
|
196
|
+
xrEntryPagePath?: string;
|
|
197
|
+
miniApp?: {
|
|
198
|
+
useAuthorizePage?: boolean;
|
|
199
|
+
};
|
|
200
|
+
__usePrivacyCheck__?: boolean;
|
|
201
|
+
}
|
|
202
|
+
export interface IAppJSON extends IOriginAppJSON {
|
|
203
|
+
pages: Array<string>;
|
|
204
|
+
static?: IAppJSONStaticConfig[];
|
|
205
|
+
"mini-ios"?: IOriginAppJSON & {
|
|
206
|
+
pages?: Array<string>;
|
|
207
|
+
};
|
|
208
|
+
"mini-android"?: IOriginAppJSON & {
|
|
209
|
+
pages?: Array<string>;
|
|
210
|
+
};
|
|
211
|
+
"mini-weixin"?: IOriginAppJSON & {
|
|
212
|
+
pages?: Array<string>;
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
export {};
|