miniprogram-ci 2.0.9 → 2.0.10
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/config/config.d.ts +1 -1
- 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/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 +1 -3
- 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/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/core.d.ts +2 -2
- package/dist/@types/types/devtools.d.ts +12 -0
- package/dist/@types/types/miniapp/index.d.ts +5 -0
- package/dist/@types/types/summer.d.ts +1 -0
- package/dist/@types/utils/miniapp-builder.d.ts +6 -1
- package/dist/@types/utils/tools.d.ts +1 -0
- package/dist/@types/utils/usbProcess.d.ts +3 -0
- package/dist/config/config.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/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/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/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/miniapp-builder.js +1 -1
- package/dist/utils/miniappJson.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
|
@@ -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 {};
|
|
@@ -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,13 @@ 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;
|
|
22
21
|
_status: MiniProgramDevtools.ICompilerStatus | undefined;
|
|
23
22
|
private _eventAdded;
|
|
24
23
|
private _locale;
|
|
25
|
-
private
|
|
24
|
+
private devCodeCacheByPath;
|
|
26
25
|
constructor(project: MiniProgramCore.IPreCompileProject, cachePath: string, projectInfo: MiniProgramDevtools.IDevtoolsProjectInfo, devtoolMessagehub: IMessageHub, analyzer: Analyzer, _filterFactory?: MiniProgramDevtools.IFilterFactory | undefined);
|
|
27
26
|
get status(): MiniProgramDevtools.ICompilerStatus | undefined;
|
|
28
27
|
protected init(): Promise<void>;
|
|
@@ -41,7 +40,6 @@ export declare class SummerCompiler extends BaseCoreCompiler {
|
|
|
41
40
|
_getPackageFiles: (graphId: import("../../types").MiniProgramCI.ProjectType, root: string, resultType?: MiniProgramCore.IResultType) => Promise<FileInfo[]>;
|
|
42
41
|
private filterFactory;
|
|
43
42
|
private getCodeByFileList;
|
|
44
|
-
private getCode;
|
|
45
43
|
getExtJSON(): Promise<ExtJSON.IExtJSON>;
|
|
46
44
|
getAppJSON(): Promise<any>;
|
|
47
45
|
getGameJSON(): Promise<any>;
|
|
@@ -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;
|
|
@@ -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 {};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { IPluginConfig, ISubPackageItem, IWindow, ITabBar, ISupportMaterial, IRequirePrivateInfos } from './appjson';
|
|
2
|
+
import { IPageJSON } from './pagejson';
|
|
3
|
+
export interface IExtJSON {
|
|
4
|
+
extAppid: string;
|
|
5
|
+
extEnable?: boolean;
|
|
6
|
+
directCommit?: boolean;
|
|
7
|
+
ext?: {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
};
|
|
10
|
+
extPages?: {
|
|
11
|
+
[key: string]: IPageJSON;
|
|
12
|
+
};
|
|
13
|
+
__warning__?: string;
|
|
14
|
+
pages?: Array<string>;
|
|
15
|
+
window?: IWindow;
|
|
16
|
+
plugins?: {
|
|
17
|
+
[key: string]: IPluginConfig;
|
|
18
|
+
};
|
|
19
|
+
entryPagePath?: string;
|
|
20
|
+
permission?: {
|
|
21
|
+
'scope.userLocation'?: {
|
|
22
|
+
desc: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
workers?: string | {
|
|
26
|
+
path: string;
|
|
27
|
+
isSubpackage: boolean;
|
|
28
|
+
};
|
|
29
|
+
subPackages?: Array<ISubPackageItem>;
|
|
30
|
+
subpackages?: Array<ISubPackageItem>;
|
|
31
|
+
preloadRule?: {
|
|
32
|
+
[key: string]: {
|
|
33
|
+
network?: 'all' | 'wifi';
|
|
34
|
+
packages: Array<string>;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
usingComponents?: {
|
|
38
|
+
[key: string]: string;
|
|
39
|
+
};
|
|
40
|
+
componentPlaceholder?: {
|
|
41
|
+
[key: string]: string;
|
|
42
|
+
};
|
|
43
|
+
tabBar?: ITabBar;
|
|
44
|
+
requiredBackgroundModes?: Array<string>;
|
|
45
|
+
mimeTypeDeclarations?: {
|
|
46
|
+
[key: string]: Array<string>;
|
|
47
|
+
};
|
|
48
|
+
networkTimeout?: {
|
|
49
|
+
request?: number;
|
|
50
|
+
connectSocket?: number;
|
|
51
|
+
uploadFile?: number;
|
|
52
|
+
downloadFile?: number;
|
|
53
|
+
};
|
|
54
|
+
debug?: boolean;
|
|
55
|
+
resizable?: boolean;
|
|
56
|
+
functionalPages?: boolean | {
|
|
57
|
+
independent: boolean;
|
|
58
|
+
};
|
|
59
|
+
cloud?: boolean;
|
|
60
|
+
openLocationPagePath?: string;
|
|
61
|
+
sitemapLocation?: string;
|
|
62
|
+
serviceProviderTicket?: string;
|
|
63
|
+
style?: 'v2';
|
|
64
|
+
useExtendedLib?: {
|
|
65
|
+
[key: string]: boolean;
|
|
66
|
+
};
|
|
67
|
+
entranceDeclare?: {
|
|
68
|
+
locationMessage?: {
|
|
69
|
+
path?: string;
|
|
70
|
+
query?: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
darkmode?: boolean;
|
|
74
|
+
themeLocation?: string;
|
|
75
|
+
theme?: string;
|
|
76
|
+
enablePassiveEvent?: boolean | {
|
|
77
|
+
[key: string]: boolean;
|
|
78
|
+
};
|
|
79
|
+
supportedMaterials?: ISupportMaterial[];
|
|
80
|
+
lazyCodeLoading?: 'requiredComponents';
|
|
81
|
+
requiredPrivateInfos?: IRequirePrivateInfos;
|
|
82
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
interface IPluginConfig {
|
|
2
|
+
provider: string;
|
|
3
|
+
version: string;
|
|
4
|
+
path?: string;
|
|
5
|
+
contexts?: Array<{
|
|
6
|
+
type: 'gameContext' | 'isolatedContext' | 'openDataContext';
|
|
7
|
+
}>;
|
|
8
|
+
}
|
|
9
|
+
interface ISubPackageItem {
|
|
10
|
+
independent?: boolean;
|
|
11
|
+
name?: string;
|
|
12
|
+
root: string;
|
|
13
|
+
plugins?: {
|
|
14
|
+
[alias: string]: IPluginConfig;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface IGameJSON {
|
|
18
|
+
deviceOrientation?: 'portrait' | 'landscape' | 'landscapeLeft' | 'landscapeRight';
|
|
19
|
+
networkTimeout?: {
|
|
20
|
+
request?: number;
|
|
21
|
+
connectSocket?: number;
|
|
22
|
+
uploadFile?: number;
|
|
23
|
+
downloadFile?: number;
|
|
24
|
+
};
|
|
25
|
+
openDataContext?: string;
|
|
26
|
+
showStatusBar?: boolean;
|
|
27
|
+
workers?: string | {
|
|
28
|
+
path: string;
|
|
29
|
+
isSubpackage: boolean;
|
|
30
|
+
};
|
|
31
|
+
disableSetUserStorageFromMiniProgram?: boolean;
|
|
32
|
+
permission?: {
|
|
33
|
+
'scope.userLocation'?: {
|
|
34
|
+
desc: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
subPackages?: Array<ISubPackageItem>;
|
|
38
|
+
subpackages?: Array<ISubPackageItem>;
|
|
39
|
+
loadingImageInfo?: {
|
|
40
|
+
path: string;
|
|
41
|
+
progressBarColor?: string;
|
|
42
|
+
};
|
|
43
|
+
plugins?: {
|
|
44
|
+
[key: string]: IPluginConfig;
|
|
45
|
+
};
|
|
46
|
+
resizable?: boolean;
|
|
47
|
+
lockStepOptions?: {
|
|
48
|
+
gameTick?: number;
|
|
49
|
+
heartBeatTick?: number;
|
|
50
|
+
offlineTimeLength?: number;
|
|
51
|
+
UDPReliabilityStrategy?: number;
|
|
52
|
+
dataType?: "String" | "ArrayBuffer";
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ISkylineFeatures, IWindow } from './appjson';
|
|
2
|
+
interface IOriginalPageJSON extends IWindow {
|
|
3
|
+
disableScroll?: boolean;
|
|
4
|
+
disableSwipeBack?: boolean;
|
|
5
|
+
usingComponents?: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
};
|
|
8
|
+
renderer?: "skyline" | "webview" | "xr-frame" | "cover-view";
|
|
9
|
+
rendererOptions?: {
|
|
10
|
+
skyline?: {
|
|
11
|
+
disableABTest?: boolean;
|
|
12
|
+
sdkVersionBegin?: string;
|
|
13
|
+
sdkVersionEnd?: string;
|
|
14
|
+
iosVersionBegin?: string;
|
|
15
|
+
iosVersionEnd?: string;
|
|
16
|
+
androidVersionBegin?: string;
|
|
17
|
+
androidVersionEnd?: string;
|
|
18
|
+
} & ISkylineFeatures;
|
|
19
|
+
};
|
|
20
|
+
component?: boolean;
|
|
21
|
+
componentGenerics?: {
|
|
22
|
+
[key: string]: {
|
|
23
|
+
default: string;
|
|
24
|
+
} | true | null;
|
|
25
|
+
};
|
|
26
|
+
singlePage?: {
|
|
27
|
+
navigationBarFit?: 'float' | 'squeezed';
|
|
28
|
+
};
|
|
29
|
+
componentFramework?: 'glass-easel' | 'exparser';
|
|
30
|
+
styleIsolation?: 'isolated' | 'apply-shared' | 'page-shared' | 'shared' | 'page-isolated' | 'page-apply-shared';
|
|
31
|
+
pureDataPattern?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface IPageJSON extends IOriginalPageJSON {
|
|
34
|
+
pageJSONLight?: IOriginalPageJSON;
|
|
35
|
+
pageJSONDark?: IOriginalPageJSON;
|
|
36
|
+
enablePassiveEvent?: boolean | {
|
|
37
|
+
[key: string]: boolean;
|
|
38
|
+
};
|
|
39
|
+
style?: "v2";
|
|
40
|
+
componentPlaceholder?: {
|
|
41
|
+
[key: string]: string;
|
|
42
|
+
};
|
|
43
|
+
"mini-ios"?: IOriginalPageJSON;
|
|
44
|
+
"mini-android"?: IOriginalPageJSON;
|
|
45
|
+
"mini-weixin"?: IOriginalPageJSON;
|
|
46
|
+
}
|
|
47
|
+
export {};
|