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.
Files changed (114) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/README.md +5 -0
  3. package/dist/@types/ci/upload.d.ts +0 -1
  4. package/dist/@types/ci/utils/progressupdate.d.ts +2 -0
  5. package/dist/@types/common/code-analyse/index.d.ts +1 -0
  6. package/dist/@types/config/config.d.ts +1 -1
  7. package/dist/@types/modules/corecompiler/baseCompiler.d.ts +5 -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 +2 -21
  12. package/dist/@types/modules/corecompiler/summer/graph/basegraph.d.ts +1 -0
  13. package/dist/@types/modules/corecompiler/summer/module.d.ts +20 -14
  14. package/dist/@types/modules/corecompiler/summerCompiler.d.ts +5 -4
  15. package/dist/@types/modules/index.d.ts +2 -0
  16. package/dist/@types/modules/nativecompiler/index.d.ts +1 -0
  17. package/dist/@types/modules/nativecompiler/ios/buildCloud.d.ts +9 -2
  18. package/dist/@types/modules/nativecompiler/ios/index.d.ts +2 -0
  19. package/dist/@types/modules/nativecompiler/nativeCompiler.d.ts +3 -0
  20. package/dist/@types/modules/precompiler/conditioncompile/index.d.ts +3 -2
  21. package/dist/@types/modules/precompiler/index.d.ts +3 -2
  22. package/dist/@types/schema/@types/appjson.d.ts +215 -0
  23. package/dist/@types/schema/@types/extjson.d.ts +82 -0
  24. package/dist/@types/schema/@types/gamejson.d.ts +55 -0
  25. package/dist/@types/schema/@types/pagejson.d.ts +47 -0
  26. package/dist/@types/schema/@types/pluginjson.d.ts +17 -0
  27. package/dist/@types/schema/@types/pluginpagejson.d.ts +5 -0
  28. package/dist/@types/schema/@types/projectconfigjson.d.ts +194 -0
  29. package/dist/@types/schema/@types/projectprivateconfigjson.d.ts +114 -0
  30. package/dist/@types/schema/@types/sitemapjson.d.ts +10 -0
  31. package/dist/@types/schema/@types/themejson.d.ts +8 -0
  32. package/dist/@types/schema/src/index.d.ts +60 -0
  33. package/dist/@types/types/ci.d.ts +1 -1
  34. package/dist/@types/types/core.d.ts +3 -3
  35. package/dist/@types/types/devtools.d.ts +22 -3
  36. package/dist/@types/types/miniapp/index.d.ts +5 -0
  37. package/dist/@types/types/summer.d.ts +2 -0
  38. package/dist/@types/utils/messageHub.d.ts +2 -2
  39. package/dist/@types/utils/miniapp-builder.d.ts +13 -3
  40. package/dist/@types/utils/progressRecorder.d.ts +3 -1
  41. package/dist/@types/utils/subprocess/processManager.d.ts +4 -1
  42. package/dist/@types/utils/taskstatus.d.ts +3 -3
  43. package/dist/@types/utils/tools.d.ts +1 -0
  44. package/dist/@types/utils/usbProcess.d.ts +3 -0
  45. package/dist/ci/getCompiledResult.js +1 -1
  46. package/dist/ci/getcompiler.js +1 -1
  47. package/dist/ci/upload.js +1 -1
  48. package/dist/ci/utils/progressupdate.js +1 -0
  49. package/dist/common/code-analyse/index.js +1 -1
  50. package/dist/config/config.js +1 -1
  51. package/dist/modules/corecompiler/baseCompiler.js +1 -1
  52. package/dist/modules/corecompiler/original/workerThread/task/index.js +1 -1
  53. package/dist/modules/corecompiler/original/workerThread/task/minifywxml.js +1 -1
  54. package/dist/modules/corecompiler/originalCompiler.js +1 -1
  55. package/dist/modules/corecompiler/processHandler.js +1 -1
  56. package/dist/modules/corecompiler/summer/graph/appgraph.js +1 -1
  57. package/dist/modules/corecompiler/summer/graph/basegraph.js +1 -1
  58. package/dist/modules/corecompiler/summer/module.js +1 -1
  59. package/dist/modules/corecompiler/summer/plugins/base/es6module.js +1 -1
  60. package/dist/modules/corecompiler/summer/plugins/base/javascript.js +1 -1
  61. package/dist/modules/corecompiler/summer/plugins/base/swc.js +1 -1
  62. package/dist/modules/corecompiler/summer/plugins/base/wxss.js +1 -1
  63. package/dist/modules/corecompiler/summer/plugins/enhance.js +1 -1
  64. package/dist/modules/corecompiler/summer/plugins/less.js +1 -1
  65. package/dist/modules/corecompiler/summer/plugins/minifywxml.js +1 -1
  66. package/dist/modules/corecompiler/summer/plugins/sass.js +1 -1
  67. package/dist/modules/corecompiler/summer/plugins/terser.js +1 -1
  68. package/dist/modules/corecompiler/summer/plugins/typescript.js +1 -1
  69. package/dist/modules/corecompiler/summer/plugins/worklet.js +1 -1
  70. package/dist/modules/corecompiler/summer/summer.js +1 -1
  71. package/dist/modules/corecompiler/summer/worker.js +1 -1
  72. package/dist/modules/corecompiler/summerCompiler.js +1 -1
  73. package/dist/modules/createSummer.js +1 -1
  74. package/dist/modules/index.js +1 -1
  75. package/dist/modules/nativecompiler/index.js +1 -1
  76. package/dist/modules/nativecompiler/ios/buildCloud.js +1 -1
  77. package/dist/modules/nativecompiler/ios/index.js +1 -1
  78. package/dist/modules/nativecompiler/nativeCompiler.js +1 -1
  79. package/dist/modules/nativecompiler/nativeEntryProcess.js +1 -1
  80. package/dist/modules/precompiler/conditioncompile/index.js +1 -1
  81. package/dist/modules/precompiler/index.js +1 -1
  82. package/dist/project/advance/precompileProject.js +1 -1
  83. package/dist/project/baseProject.js +1 -1
  84. package/dist/schema/@types/appjson.js +1 -0
  85. package/dist/schema/@types/extjson.js +1 -0
  86. package/dist/schema/@types/gamejson.js +1 -0
  87. package/dist/schema/@types/pagejson.js +1 -0
  88. package/dist/schema/@types/pluginjson.js +1 -0
  89. package/dist/schema/@types/pluginpagejson.js +1 -0
  90. package/dist/schema/@types/projectconfigjson.js +1 -0
  91. package/dist/schema/@types/projectprivateconfigjson.js +1 -0
  92. package/dist/schema/@types/sitemapjson.js +1 -0
  93. package/dist/schema/@types/themejson.js +1 -0
  94. package/dist/schema/dist/app.js +1 -1
  95. package/dist/schema/dist/ext.js +1 -1
  96. package/dist/schema/dist/game.js +1 -1
  97. package/dist/schema/dist/page.js +1 -1
  98. package/dist/schema/dist/plugin.js +1 -1
  99. package/dist/schema/dist/pluginpage.js +1 -1
  100. package/dist/schema/dist/projectconfig.js +37 -1
  101. package/dist/schema/dist/projectprivateconfig.js +1 -1
  102. package/dist/schema/dist/sitemap.js +1 -1
  103. package/dist/schema/dist/theme.js +1 -1
  104. package/dist/schema/src/index.js +1 -0
  105. package/dist/utils/codesign.js +1 -1
  106. package/dist/utils/cp.js +1 -1
  107. package/dist/utils/miniapp-builder.js +1 -1
  108. package/dist/utils/miniappJson.js +1 -1
  109. package/dist/utils/progressRecorder.js +1 -1
  110. package/dist/utils/subprocess/processManager.js +1 -1
  111. package/dist/utils/taskstatus.js +1 -1
  112. package/dist/utils/tools.js +1 -1
  113. package/dist/utils/usbProcess.js +1 -0
  114. package/package.json +1 -1
@@ -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
+ }
@@ -0,0 +1,114 @@
1
+ export interface IProjectprivateconfigJSON {
2
+ projectArchitecture?: 'miniProgram' | 'mulitPlatform';
3
+ libVersion?: 'latest' | 'trial' | 'widelyUsed' | 'development' | '' | `${number}.${number}.${number}`;
4
+ editorSetting?: {
5
+ tabIndent?: 'tab' | 'auto' | 'insertSpaces';
6
+ tabSize?: '\t' | number;
7
+ };
8
+ cloudfunctionRoot?: string;
9
+ cloudfunctionTemplateRoot?: string;
10
+ cloudcontainerRoot?: string;
11
+ srcMiniprogramRoot?: string;
12
+ description?: string;
13
+ simulatorType?: string;
14
+ simulatorPluginLibVersion?: any;
15
+ miniprogramRoot?: string;
16
+ pluginRoot?: string;
17
+ pluginAppid?: string;
18
+ jsserverRoot?: string;
19
+ projectname?: string;
20
+ appid?: string;
21
+ packOptions?: {
22
+ ignore?: Array<{
23
+ type: string;
24
+ value: string;
25
+ }>;
26
+ include?: Array<{
27
+ type: string;
28
+ value: string;
29
+ }>;
30
+ };
31
+ watchOptions?: {
32
+ ignore?: Array<string>;
33
+ };
34
+ setting?: {
35
+ autoAudits?: boolean;
36
+ urlCheck?: boolean;
37
+ compileHotReLoad?: boolean;
38
+ preloadBackgroundData?: boolean;
39
+ lazyloadPlaceholderEnable?: boolean;
40
+ useStaticServer?: boolean;
41
+ coverView?: boolean;
42
+ ignoreDevUnusedFiles?: boolean;
43
+ ignoreCodeQuality?: boolean;
44
+ checkInvalidKey?: boolean;
45
+ showShadowRootInWxmlPanel?: boolean;
46
+ useIsolateContext?: boolean;
47
+ useMultiFrameRuntime?: boolean;
48
+ useApiHook?: boolean;
49
+ useApiHostProcess?: boolean;
50
+ useLanDebug?: boolean;
51
+ enableEngineNative?: boolean;
52
+ showES6CompileOption?: boolean;
53
+ };
54
+ staticServerOptions?: {
55
+ servePath?: string;
56
+ };
57
+ condition?: {
58
+ game?: {
59
+ current?: number;
60
+ list?: Array<{
61
+ name?: string;
62
+ pathName?: string;
63
+ query?: string;
64
+ scene?: string | number | null;
65
+ shareInfo?: any;
66
+ referrerInfo?: any;
67
+ chatroomUsernameInfo?: any;
68
+ groupInfo?: any;
69
+ }>;
70
+ };
71
+ gamePlugin?: {
72
+ current?: number;
73
+ list?: Array<{
74
+ name?: string;
75
+ query?: string;
76
+ scene?: string | number | null;
77
+ shareInfo?: any;
78
+ referrerInfo?: any;
79
+ groupInfo?: any;
80
+ }>;
81
+ };
82
+ plugin?: {
83
+ current?: number;
84
+ list?: Array<{
85
+ name?: string;
86
+ pathName?: string;
87
+ query?: string;
88
+ launchMode?: string;
89
+ scene?: string | number | null;
90
+ shareInfo?: any;
91
+ referrerInfo?: any;
92
+ groupInfo?: any;
93
+ }>;
94
+ };
95
+ miniprogram?: {
96
+ current?: number;
97
+ list?: Array<{
98
+ name?: string;
99
+ pathName?: string;
100
+ query?: string;
101
+ launchMode?: string;
102
+ scene?: string | number | null;
103
+ partialCompile?: {
104
+ enabled?: boolean;
105
+ pages?: any[];
106
+ };
107
+ shareInfo?: any;
108
+ referrerInfo?: any;
109
+ chatroomUsernameInfo?: any;
110
+ groupInfo?: any;
111
+ }>;
112
+ };
113
+ };
114
+ }
@@ -0,0 +1,10 @@
1
+ export interface ISitemapJSON {
2
+ desc?: string;
3
+ rules: Array<{
4
+ action: 'allow' | 'disallow';
5
+ page: string;
6
+ params?: Array<any>;
7
+ matching?: 'inclusive' | 'exact' | 'exclusive' | 'partial';
8
+ priority?: number;
9
+ }>;
10
+ }
@@ -0,0 +1,8 @@
1
+ export interface IThemeJSON {
2
+ light?: {
3
+ [key: string]: string;
4
+ };
5
+ dark?: {
6
+ [key: string]: string;
7
+ };
8
+ }
@@ -0,0 +1,60 @@
1
+ export declare const NEW_CHECK_JSON_WAY = true;
2
+ export interface Schema {
3
+ id?: string;
4
+ $schema?: string;
5
+ $ref?: string;
6
+ title?: string;
7
+ description?: string;
8
+ multipleOf?: number;
9
+ maximum?: number;
10
+ exclusiveMaximum?: boolean;
11
+ minimum?: number;
12
+ exclusiveMinimum?: boolean;
13
+ maxLength?: number;
14
+ minLength?: number;
15
+ pattern?: string | RegExp;
16
+ additionalItems?: boolean | Schema;
17
+ items?: Schema | Schema[];
18
+ maxItems?: number;
19
+ minItems?: number;
20
+ uniqueItems?: boolean;
21
+ maxProperties?: number;
22
+ minProperties?: number;
23
+ required?: string[];
24
+ additionalProperties?: boolean | Schema;
25
+ definitions?: {
26
+ [name: string]: Schema;
27
+ };
28
+ properties?: {
29
+ [name: string]: Schema;
30
+ };
31
+ patternProperties?: {
32
+ [name: string]: Schema;
33
+ };
34
+ dependencies?: {
35
+ [name: string]: Schema | string[];
36
+ };
37
+ 'enum'?: any[];
38
+ type?: string | string[];
39
+ format?: string;
40
+ allOf?: Schema[];
41
+ anyOf?: Schema[];
42
+ oneOf?: Schema[];
43
+ not?: Schema;
44
+ }
45
+ export interface ISchema extends Schema {
46
+ $version: number;
47
+ }
48
+ export interface IValidateResult {
49
+ warning: string;
50
+ error: Array<{
51
+ errorType: string;
52
+ errorProperty: string;
53
+ correctType?: Array<string>;
54
+ requireProperty?: string;
55
+ }>;
56
+ }
57
+ export declare const config: {
58
+ [key: string]: ISchema;
59
+ };
60
+ export type FILE = 'app' | 'ext' | 'game' | 'page' | 'plugin' | 'pluginpage' | 'projectconfig' | 'projectprivateconfig' | 'sitemap' | 'theme';
@@ -105,7 +105,7 @@ export declare namespace MiniProgramCI {
105
105
  interface ITaskStatus {
106
106
  id: string;
107
107
  message: string;
108
- status: 'doing' | 'done' | 'fail' | 'warn';
108
+ status: 'doing' | 'done' | 'fail' | 'warn' | 'info';
109
109
  }
110
110
  interface IDevToolsCompileCache {
111
111
  init: (project: IProject) => Promise<void>;
@@ -82,7 +82,7 @@ export declare namespace MiniProgramCore {
82
82
  interface ITaskStatus {
83
83
  id: string;
84
84
  message: string;
85
- status: 'doing' | 'fail' | 'done' | 'warn';
85
+ status: MiniProgramDevtools.IBuildLogType;
86
86
  }
87
87
  interface IDevToolsCompileCache {
88
88
  init: (project: IProject) => Promise<void>;
@@ -111,7 +111,7 @@ export declare namespace MiniProgramCore {
111
111
  compilePages?: string[];
112
112
  analyzer?: Analyzer;
113
113
  disableSpreadingUsingComponents?: boolean;
114
- resultType?: IResultType;
114
+ resultType: IResultType;
115
115
  useCache?: boolean;
116
116
  targetPlatform?: 'mini-ios' | 'mini-android' | 'miniprogram';
117
117
  }
@@ -125,7 +125,7 @@ export declare namespace MiniProgramCore {
125
125
  compilePages?: string[];
126
126
  analyzer?: Analyzer;
127
127
  disableSpreadingUsingComponents?: boolean;
128
- resultType?: IResultType;
128
+ resultType: IResultType;
129
129
  }
130
130
  type IProjectAttr = MiniProgramCI.IProjectAttr;
131
131
  interface IWarnItem {