miniprogram-ci 2.0.8 → 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.
Files changed (126) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +4 -0
  3. package/dist/@types/ci/utils/tools.d.ts +1 -0
  4. package/dist/@types/common/code-analyse/index.d.ts +16 -1
  5. package/dist/@types/config/config.d.ts +8 -1
  6. package/dist/@types/index.d.ts +2 -1
  7. package/dist/@types/modules/corecompiler/baseCompiler.d.ts +6 -0
  8. package/dist/@types/modules/corecompiler/original/validate/schemaValidate.d.ts +1 -1
  9. package/dist/@types/modules/corecompiler/original/workerThread/task/minifywxml.d.ts +21 -25
  10. package/dist/@types/modules/corecompiler/originalCompiler.d.ts +1 -0
  11. package/dist/@types/modules/corecompiler/processHandler.d.ts +4 -3
  12. package/dist/@types/modules/corecompiler/summer/graph/appconf.d.ts +4 -0
  13. package/dist/@types/modules/corecompiler/summer/graph/appgraph.d.ts +6 -3
  14. package/dist/@types/modules/corecompiler/summer/graph/basegraph.d.ts +13 -3
  15. package/dist/@types/modules/corecompiler/summer/graph/gamegraph.d.ts +6 -3
  16. package/dist/@types/modules/corecompiler/summer/graph/gameplugingraph.d.ts +5 -4
  17. package/dist/@types/modules/corecompiler/summer/graph/plugingraph.d.ts +5 -4
  18. package/dist/@types/modules/corecompiler/summer/module.d.ts +20 -14
  19. package/dist/@types/modules/corecompiler/summer/plugins/base/javascript.d.ts +1 -1
  20. package/dist/@types/modules/corecompiler/summer/plugins/base/swc.d.ts +1 -1
  21. package/dist/@types/modules/corecompiler/summer/summer.d.ts +5 -1
  22. package/dist/@types/modules/corecompiler/summerCompiler.d.ts +16 -5
  23. package/dist/@types/modules/createSummer.d.ts +3 -2
  24. package/dist/@types/modules/index.d.ts +6 -0
  25. package/dist/@types/modules/nativecompiler/index.d.ts +1 -0
  26. package/dist/@types/modules/nativecompiler/ios/buildCloud.d.ts +9 -2
  27. package/dist/@types/modules/nativecompiler/ios/index.d.ts +2 -0
  28. package/dist/@types/modules/nativecompiler/nativeCompiler.d.ts +3 -0
  29. package/dist/@types/schema/@types/appjson.d.ts +215 -0
  30. package/dist/@types/schema/@types/extjson.d.ts +82 -0
  31. package/dist/@types/schema/@types/gamejson.d.ts +55 -0
  32. package/dist/@types/schema/@types/pagejson.d.ts +47 -0
  33. package/dist/@types/schema/@types/pluginjson.d.ts +17 -0
  34. package/dist/@types/schema/@types/pluginpagejson.d.ts +5 -0
  35. package/dist/@types/schema/@types/projectconfigjson.d.ts +194 -0
  36. package/dist/@types/schema/@types/projectprivateconfigjson.d.ts +114 -0
  37. package/dist/@types/schema/@types/sitemapjson.d.ts +10 -0
  38. package/dist/@types/schema/@types/themejson.d.ts +8 -0
  39. package/dist/@types/schema/src/index.d.ts +60 -0
  40. package/dist/@types/types/ci.d.ts +2 -1
  41. package/dist/@types/types/core.d.ts +22 -3
  42. package/dist/@types/types/devtools.d.ts +18 -6
  43. package/dist/@types/types/miniapp/index.d.ts +5 -0
  44. package/dist/@types/types/miniprogram-json/app.d.ts +16 -6
  45. package/dist/@types/types/summer.d.ts +1 -0
  46. package/dist/@types/utils/locales/locales.d.ts +5 -0
  47. package/dist/@types/utils/locales/zh.d.ts +5 -0
  48. package/dist/@types/utils/messageHub.d.ts +1 -1
  49. package/dist/@types/utils/miniapp-builder.d.ts +6 -1
  50. package/dist/@types/utils/packOptionsHelper.d.ts +15 -2
  51. package/dist/@types/utils/progressRecorder.d.ts +1 -1
  52. package/dist/@types/utils/tools.d.ts +5 -0
  53. package/dist/@types/utils/usbProcess.d.ts +3 -0
  54. package/dist/ci/utils/filterUnusedFile.js +1 -1
  55. package/dist/ci/utils/tools.js +1 -1
  56. package/dist/common/code-analyse/index.js +1 -1
  57. package/dist/config/config.js +1 -1
  58. package/dist/index.js +1 -1
  59. package/dist/modules/corecompiler/baseCompiler.js +1 -1
  60. package/dist/modules/corecompiler/original/compile/common.js +1 -1
  61. package/dist/modules/corecompiler/original/workerThread/task/compilejs.js +1 -1
  62. package/dist/modules/corecompiler/original/workerThread/task/index.js +1 -1
  63. package/dist/modules/corecompiler/original/workerThread/task/minifywxml.js +1 -1
  64. package/dist/modules/corecompiler/originalCompiler.js +1 -1
  65. package/dist/modules/corecompiler/processHandler.js +1 -1
  66. package/dist/modules/corecompiler/summer/graph/appconf.js +1 -1
  67. package/dist/modules/corecompiler/summer/graph/appgraph.js +1 -1
  68. package/dist/modules/corecompiler/summer/graph/basegraph.js +1 -1
  69. package/dist/modules/corecompiler/summer/graph/gamegraph.js +1 -1
  70. package/dist/modules/corecompiler/summer/graph/gameplugingraph.js +1 -1
  71. package/dist/modules/corecompiler/summer/graph/plugingraph.js +1 -1
  72. package/dist/modules/corecompiler/summer/module.js +1 -1
  73. package/dist/modules/corecompiler/summer/plugins/base/es6module.js +1 -1
  74. package/dist/modules/corecompiler/summer/plugins/base/javascript.js +1 -1
  75. package/dist/modules/corecompiler/summer/plugins/base/swc.js +1 -1
  76. package/dist/modules/corecompiler/summer/plugins/base/wxss.js +1 -1
  77. package/dist/modules/corecompiler/summer/plugins/enhance.js +1 -1
  78. package/dist/modules/corecompiler/summer/plugins/less.js +1 -1
  79. package/dist/modules/corecompiler/summer/plugins/minifywxml.js +1 -1
  80. package/dist/modules/corecompiler/summer/plugins/sass.js +1 -1
  81. package/dist/modules/corecompiler/summer/plugins/terser.js +1 -1
  82. package/dist/modules/corecompiler/summer/plugins/typescript.js +1 -1
  83. package/dist/modules/corecompiler/summer/plugins/worklet.js +1 -1
  84. package/dist/modules/corecompiler/summer/summer.js +1 -1
  85. package/dist/modules/corecompiler/summerCompiler.js +1 -1
  86. package/dist/modules/createSummer.js +1 -1
  87. package/dist/modules/index.js +1 -1
  88. package/dist/modules/nativecompiler/index.js +1 -1
  89. package/dist/modules/nativecompiler/ios/buildCloud.js +1 -1
  90. package/dist/modules/nativecompiler/ios/index.js +1 -1
  91. package/dist/modules/nativecompiler/nativeCompiler.js +1 -1
  92. package/dist/modules/nativecompiler/nativeEntryProcess.js +1 -1
  93. package/dist/project/advance/precompileProject.js +1 -1
  94. package/dist/project/baseProject.js +1 -1
  95. package/dist/schema/@types/appjson.js +1 -0
  96. package/dist/schema/@types/extjson.js +1 -0
  97. package/dist/schema/@types/gamejson.js +1 -0
  98. package/dist/schema/@types/pagejson.js +1 -0
  99. package/dist/schema/@types/pluginjson.js +1 -0
  100. package/dist/schema/@types/pluginpagejson.js +1 -0
  101. package/dist/schema/@types/projectconfigjson.js +1 -0
  102. package/dist/schema/@types/projectprivateconfigjson.js +1 -0
  103. package/dist/schema/@types/sitemapjson.js +1 -0
  104. package/dist/schema/@types/themejson.js +1 -0
  105. package/dist/schema/dist/app.js +1 -1
  106. package/dist/schema/dist/ext.js +1 -1
  107. package/dist/schema/dist/game.js +1 -1
  108. package/dist/schema/dist/page.js +1 -1
  109. package/dist/schema/dist/plugin.js +1 -1
  110. package/dist/schema/dist/pluginpage.js +1 -1
  111. package/dist/schema/dist/projectconfig.js +37 -1
  112. package/dist/schema/dist/projectprivateconfig.js +1 -1
  113. package/dist/schema/dist/sitemap.js +1 -1
  114. package/dist/schema/dist/theme.js +1 -1
  115. package/dist/schema/src/index.js +1 -0
  116. package/dist/utils/codesign.js +1 -1
  117. package/dist/utils/locales/en.js +1 -1
  118. package/dist/utils/locales/zh.js +1 -1
  119. package/dist/utils/miniapp-builder.js +1 -1
  120. package/dist/utils/miniappJson.js +1 -1
  121. package/dist/utils/packOptionsHelper.js +1 -1
  122. package/dist/utils/progressRecorder.js +1 -1
  123. package/dist/utils/subprocess/processManager.js +1 -1
  124. package/dist/utils/tools.js +1 -1
  125. package/dist/utils/usbProcess.js +1 -0
  126. package/package.json +1 -1
@@ -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 {};
@@ -0,0 +1,17 @@
1
+ export interface IPluginJSON {
2
+ publicComponents?: {
3
+ [key: string]: string;
4
+ };
5
+ usingComponents?: {
6
+ [key: string]: string;
7
+ };
8
+ pages?: {
9
+ [key: string]: string;
10
+ };
11
+ main?: string;
12
+ themeLocation?: string;
13
+ lazyCodeLoading?: 'requiredComponents';
14
+ workers?: string;
15
+ renderer?: "skyline" | "webview";
16
+ componentFramework?: 'glass-easel' | 'exparser';
17
+ }
@@ -0,0 +1,5 @@
1
+ export interface IPluginpageJSON {
2
+ usingComponents?: {
3
+ [key: string]: string;
4
+ };
5
+ }
@@ -0,0 +1,194 @@
1
+ export interface ISkeletonConfig {
2
+ loading?: 'spin' | 'chiaroscuro' | 'shine';
3
+ outline?: {
4
+ remain: boolean;
5
+ replace: string;
6
+ };
7
+ text?: {
8
+ color: string;
9
+ };
10
+ image?: {
11
+ color: string;
12
+ shape: 'circle' | 'rect';
13
+ shapeOpposite: string[];
14
+ };
15
+ button?: {
16
+ color: string;
17
+ excludes: string[];
18
+ };
19
+ pseudo?: {
20
+ color: string;
21
+ shape: 'circle' | 'rect';
22
+ };
23
+ excludes?: string[];
24
+ remove?: string[];
25
+ grayBlock?: string[];
26
+ showNative?: boolean;
27
+ backgroundColor?: string;
28
+ mode?: 'fullscreen' | 'auto';
29
+ templateName?: string;
30
+ cssUnit?: 'rpx' | 'rem' | 'vw' | 'vh' | 'vmin' | 'vmax';
31
+ decimal?: number;
32
+ }
33
+ export interface IProjectconfigJSON {
34
+ libVersion?: 'latest' | 'trial' | 'widelyUsed' | 'development' | '' | `${number}.${number}.${number}`;
35
+ editorSetting?: {
36
+ tabIndent?: 'tab' | 'auto' | 'insertSpaces';
37
+ tabSize?: '\t' | number;
38
+ };
39
+ cloudfunctionRoot?: string;
40
+ cloudfunctionTemplateRoot?: string;
41
+ cloudcontainerRoot?: string;
42
+ srcMiniprogramRoot?: string;
43
+ description?: string;
44
+ simulatorType?: string;
45
+ simulatorPluginLibVersion?: any;
46
+ miniprogramRoot?: string;
47
+ qcloudRoot?: string;
48
+ pluginRoot?: string;
49
+ cloudbaseRoot?: string;
50
+ compileType?: string;
51
+ pluginAppid?: string;
52
+ jsserverRoot?: string;
53
+ projectname?: string;
54
+ appid?: string;
55
+ packOptions?: {
56
+ ignore?: Array<{
57
+ type: string;
58
+ value: string;
59
+ }>;
60
+ include?: Array<{
61
+ type: string;
62
+ value: string;
63
+ }>;
64
+ };
65
+ watchOptions?: {
66
+ ignore?: Array<string>;
67
+ };
68
+ setting?: {
69
+ es6?: boolean;
70
+ enhance?: boolean;
71
+ postcss?: boolean;
72
+ minified?: boolean;
73
+ minifyWXSS?: boolean;
74
+ minifyWXML?: boolean;
75
+ uglifyFileName?: boolean;
76
+ ignoreUploadUnusedFiles?: boolean;
77
+ ignoreCodeQuality?: boolean;
78
+ autoAudits?: boolean;
79
+ urlCheck?: boolean;
80
+ compileHotReLoad?: boolean;
81
+ preloadBackgroundData?: boolean;
82
+ lazyloadPlaceholderEnable?: boolean;
83
+ useStaticServer?: boolean;
84
+ babelSetting?: {
85
+ outputPath?: string;
86
+ ignore?: string[];
87
+ disablePlugins?: any[];
88
+ };
89
+ useCompilerPlugins?: Array<'typescript' | 'less' | 'sass'> | false;
90
+ disableUseStrict?: boolean;
91
+ uploadWithSourceMap?: boolean;
92
+ localPlugins?: boolean;
93
+ packNpmManually?: boolean;
94
+ packNpmRelationList?: Array<{
95
+ packageJsonPath: string;
96
+ miniprogramNpmDistDir: string;
97
+ }>;
98
+ coverView?: boolean;
99
+ ignoreDevUnusedFiles?: boolean;
100
+ checkInvalidKey?: boolean;
101
+ showShadowRootInWxmlPanel?: boolean;
102
+ useIsolateContext?: boolean;
103
+ useMultiFrameRuntime?: boolean;
104
+ useApiHook?: boolean;
105
+ useApiHostProcess?: boolean;
106
+ useLanDebug?: boolean;
107
+ enableEngineNative?: boolean;
108
+ showES6CompileOption?: boolean;
109
+ minifyWXMLSetting?: {
110
+ global: {
111
+ collapseWhitespace?: boolean;
112
+ conservativeCollapse?: boolean;
113
+ preserveLineBreaks?: boolean;
114
+ };
115
+ [filePath: string]: {
116
+ collapseWhitespace?: boolean;
117
+ conservativeCollapse?: boolean;
118
+ preserveLineBreaks?: boolean;
119
+ };
120
+ };
121
+ };
122
+ staticServerOptions?: {
123
+ servePath?: string;
124
+ };
125
+ scripts?: {
126
+ beforeCompile?: string;
127
+ beforePreview?: string;
128
+ beforeUpload?: string;
129
+ };
130
+ debugOptions?: {
131
+ hideInDevtools?: string[];
132
+ };
133
+ condition?: {
134
+ game?: {
135
+ current?: number;
136
+ list?: Array<{
137
+ name?: string;
138
+ pathName?: string;
139
+ query?: string;
140
+ scene?: string | number | null;
141
+ shareInfo?: any;
142
+ referrerInfo?: any;
143
+ chatroomUsernameInfo?: any;
144
+ groupInfo?: any;
145
+ }>;
146
+ };
147
+ gamePlugin?: {
148
+ current?: number;
149
+ list?: Array<{
150
+ name?: string;
151
+ query?: string;
152
+ scene?: string | number | null;
153
+ shareInfo?: any;
154
+ referrerInfo?: any;
155
+ groupInfo?: any;
156
+ }>;
157
+ };
158
+ plugin?: {
159
+ current?: number;
160
+ list?: Array<{
161
+ name?: string;
162
+ pathName?: string;
163
+ query?: string;
164
+ launchMode?: string;
165
+ scene?: string | number | null;
166
+ shareInfo?: any;
167
+ referrerInfo?: any;
168
+ groupInfo?: any;
169
+ }>;
170
+ };
171
+ miniprogram?: {
172
+ current?: number;
173
+ list?: Array<{
174
+ name?: string;
175
+ pathName?: string;
176
+ query?: string;
177
+ launchMode?: string;
178
+ scene?: string | number | null;
179
+ partialCompile?: {
180
+ enabled?: boolean;
181
+ pages?: any[];
182
+ };
183
+ shareInfo?: any;
184
+ referrerInfo?: any;
185
+ chatroomUsernameInfo?: any;
186
+ groupInfo?: any;
187
+ }>;
188
+ };
189
+ };
190
+ skeletonConfig?: {
191
+ [pageName: string]: ISkeletonConfig;
192
+ global: ISkeletonConfig;
193
+ };
194
+ }