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
|
@@ -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,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,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';
|
|
@@ -111,7 +111,7 @@ export declare namespace MiniProgramCore {
|
|
|
111
111
|
compilePages?: string[];
|
|
112
112
|
analyzer?: Analyzer;
|
|
113
113
|
disableSpreadingUsingComponents?: boolean;
|
|
114
|
-
resultType
|
|
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
|
|
128
|
+
resultType: IResultType;
|
|
129
129
|
}
|
|
130
130
|
type IProjectAttr = MiniProgramCI.IProjectAttr;
|
|
131
131
|
interface IWarnItem {
|
|
@@ -187,6 +187,18 @@ export declare namespace MiniProgramDevtools {
|
|
|
187
187
|
disablePlugins: string[];
|
|
188
188
|
outputPath: string;
|
|
189
189
|
};
|
|
190
|
+
minifyWXMLSetting?: {
|
|
191
|
+
global: {
|
|
192
|
+
collapseWhitespace?: boolean;
|
|
193
|
+
conservativeCollapse?: boolean;
|
|
194
|
+
preserveLineBreaks?: boolean;
|
|
195
|
+
};
|
|
196
|
+
[filePath: string]: {
|
|
197
|
+
collapseWhitespace?: boolean;
|
|
198
|
+
conservativeCollapse?: boolean;
|
|
199
|
+
preserveLineBreaks?: boolean;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
190
202
|
bundle?: boolean;
|
|
191
203
|
userConfirmedBundleSwitch?: boolean;
|
|
192
204
|
useIsolateContext?: boolean;
|
|
@@ -98,6 +98,7 @@ export declare namespace IMiniApp {
|
|
|
98
98
|
pluginDirList: IIOSPluginDir[];
|
|
99
99
|
theme: ITheme;
|
|
100
100
|
i18nInfo: II18NInfo;
|
|
101
|
+
debugInfo?: IDebugInfo;
|
|
101
102
|
}
|
|
102
103
|
type IIOSRunCloudArgs = IIOSRunCloudSimpleArgs & {
|
|
103
104
|
projectPath: string;
|
|
@@ -132,6 +133,9 @@ export declare namespace IMiniApp {
|
|
|
132
133
|
android?: Record<string, string>;
|
|
133
134
|
};
|
|
134
135
|
type II18NInfo = Record<string, ITranslations>;
|
|
136
|
+
type IDebugInfo = {
|
|
137
|
+
debugType: 'HotReload' | 'Release' | 'RemoteDebug' | 'Debug';
|
|
138
|
+
};
|
|
135
139
|
type IIOSBuildCloudSimpleArgs = {
|
|
136
140
|
buildType: IBuileType;
|
|
137
141
|
output: string;
|
|
@@ -144,6 +148,7 @@ export declare namespace IMiniApp {
|
|
|
144
148
|
pluginDirList: IIOSPluginDir[];
|
|
145
149
|
theme: ITheme;
|
|
146
150
|
i18nInfo: II18NInfo;
|
|
151
|
+
debugInfo?: IDebugInfo;
|
|
147
152
|
};
|
|
148
153
|
type IIOSBuildCloudArgs = IIOSBuildCloudSimpleArgs & {
|
|
149
154
|
projectPath: string;
|
|
@@ -40,7 +40,7 @@ interface ISignAndInstallResult {
|
|
|
40
40
|
success: boolean;
|
|
41
41
|
errMsg?: string;
|
|
42
42
|
}
|
|
43
|
-
interface IGetMiniAppBuilderOts {
|
|
43
|
+
export interface IGetMiniAppBuilderOts {
|
|
44
44
|
miniappDirPath?: string;
|
|
45
45
|
devtoolsVersion?: string;
|
|
46
46
|
recorder?: Recorder;
|
|
@@ -54,6 +54,11 @@ interface IGetDevicesOpts {
|
|
|
54
54
|
type IClearCacheOpts = IGetDevicesOpts & {
|
|
55
55
|
type: 'appleId' | 'certificate';
|
|
56
56
|
};
|
|
57
|
+
export declare function getMiniAppBuilderFromRemoteCore(opts: IGetMiniAppBuilderOts, winExeFileName: string, macExeFileName: string): Promise<{
|
|
58
|
+
builderPath: string;
|
|
59
|
+
exe: string;
|
|
60
|
+
cwd: string;
|
|
61
|
+
}>;
|
|
57
62
|
export declare function getIOSDevices(opts: IGetDevicesOpts): Promise<IMiniApp.IOSDevice[]>;
|
|
58
63
|
export declare function clearCache(opts: IClearCacheOpts): Promise<void>;
|
|
59
64
|
export declare function doAppleIdSignAndInstallOrExport(opts: IAppleIdSignAndInstall, otherOpts: IGetMiniAppBuilderOts): Promise<ISignAndInstallResult>;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { RawSourceMap } from 'source-map';
|
|
3
3
|
import { AppJSON, MiniProgramCI, MiniProgramCore } from '../types';
|
|
4
4
|
export declare function normalizePath(pathName?: string): string;
|
|
5
|
+
export declare function joinPath(basePath?: string, appendPath?: string): string;
|
|
5
6
|
export declare function escapeScript(str: string): string;
|
|
6
7
|
export declare function wrapCodeByEval(code: string): string;
|
|
7
8
|
export declare function getType(object: any): string;
|
package/dist/config/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var COMPILE_TYPE,AstType,EFilterCode;function getDefaultIgnores(e){const _=["node_modules/**/*","**/node_modules/**","**/.git/**",".git/**/*","**/.svn/**",".svn/**/*",".DS_Store","**/.DS_Store"];return"multiPlatform"===e.projectArchitecture&&_.push(exports.multiPlatformRoot+"/**/*"),_}Object.defineProperty(exports,"__esModule",{value:!0}),exports.MAX_CODE_LENGTH=exports.EFilterCode=exports.AstType=exports.compileTypeConfig=exports.getDefaultIgnores=exports.FullPkg=exports.MainPkg=exports.multiPlatformRoot=exports.extendedLibMap=exports.jsonVariablePropertyWhiteList=exports.DefaultProjectAttr=exports.TABBAR_ICON_WHITE_LIST=exports.COMPILE_TYPE=exports.APP_TYPE=exports.MINI_GAME_WORKERS_PACKAGE_ROOT=exports.MINI_GAME_MAIN_PACKAGE_ROOT=exports.MINI_PROGRAM_MAIN_PACKAGE_ROOT=exports.PROJECT_TYPE_ERROR=exports.GET_LATEST_VERSION_CGI_ERR=exports.UPLOAD_JS_SERVER_CGI_ERR=exports.CODE_PROTECT_TRANSLATE_FILENAME=exports.UPLOAD_CGI_ERR=exports.GENERATE_LOCAL_SIGNATURE_ERR=exports.GET_SIGNATURE_RAND_STRING_ERR=exports.APP_JSON_NOT_FOUND=exports.JSON_CONTENT_ERR=exports.FILE_NOT_UTF8=exports.JSON_PARSE_ERR=exports.FILE_NOT_FOUND=exports.PLUGIN_JSON_PARSE_ERR=exports.PLUGIN_JSON_CONTENT_ERR=exports.PLUGIN_JSON_FILE_NOT_FOUND=exports.GAME_PLUGIN_LIB_MD5_NOT_MATCH=exports.SUMMER_PLUGIN_CODE_ERR=exports.SUMMER_PLUGIN_ERR=exports.MINIFY_WXML_ERR=exports.POST_WXSS_ERR=exports.FILE_FLAT_ERR=exports.JS_ES6_ERR=exports.BABILI_JS_ERR=exports.UGLIFY_JS_ERR=exports.BABEL_TRANS_JS_ERR=exports.JS_NOT_FOUND=exports.WXML_NOT_FOUND=exports.PARAM_ERROR=exports.CI_VERSION=void 0,exports.CI_VERSION="2.0.
|
|
1
|
+
"use strict";var COMPILE_TYPE,AstType,EFilterCode;function getDefaultIgnores(e){const _=["node_modules/**/*","**/node_modules/**","**/.git/**",".git/**/*","**/.svn/**",".svn/**/*",".DS_Store","**/.DS_Store"];return"multiPlatform"===e.projectArchitecture&&_.push(exports.multiPlatformRoot+"/**/*"),_}Object.defineProperty(exports,"__esModule",{value:!0}),exports.MAX_CODE_LENGTH=exports.EFilterCode=exports.AstType=exports.compileTypeConfig=exports.getDefaultIgnores=exports.FullPkg=exports.MainPkg=exports.multiPlatformRoot=exports.extendedLibMap=exports.jsonVariablePropertyWhiteList=exports.DefaultProjectAttr=exports.TABBAR_ICON_WHITE_LIST=exports.COMPILE_TYPE=exports.APP_TYPE=exports.MINI_GAME_WORKERS_PACKAGE_ROOT=exports.MINI_GAME_MAIN_PACKAGE_ROOT=exports.MINI_PROGRAM_MAIN_PACKAGE_ROOT=exports.PROJECT_TYPE_ERROR=exports.GET_LATEST_VERSION_CGI_ERR=exports.UPLOAD_JS_SERVER_CGI_ERR=exports.CODE_PROTECT_TRANSLATE_FILENAME=exports.UPLOAD_CGI_ERR=exports.GENERATE_LOCAL_SIGNATURE_ERR=exports.GET_SIGNATURE_RAND_STRING_ERR=exports.APP_JSON_NOT_FOUND=exports.JSON_CONTENT_ERR=exports.FILE_NOT_UTF8=exports.JSON_PARSE_ERR=exports.FILE_NOT_FOUND=exports.PLUGIN_JSON_PARSE_ERR=exports.PLUGIN_JSON_CONTENT_ERR=exports.PLUGIN_JSON_FILE_NOT_FOUND=exports.GAME_PLUGIN_LIB_MD5_NOT_MATCH=exports.SUMMER_PLUGIN_CODE_ERR=exports.SUMMER_PLUGIN_ERR=exports.MINIFY_WXML_ERR=exports.POST_WXSS_ERR=exports.FILE_FLAT_ERR=exports.JS_ES6_ERR=exports.BABILI_JS_ERR=exports.UGLIFY_JS_ERR=exports.BABEL_TRANS_JS_ERR=exports.JS_NOT_FOUND=exports.WXML_NOT_FOUND=exports.PARAM_ERROR=exports.CI_VERSION=void 0,exports.CI_VERSION="2.0.10",exports.PARAM_ERROR=1e4,exports.WXML_NOT_FOUND=10007,exports.JS_NOT_FOUND=10008,exports.BABEL_TRANS_JS_ERR=10032,exports.UGLIFY_JS_ERR=10033,exports.BABILI_JS_ERR=10034,exports.JS_ES6_ERR=10035,exports.FILE_FLAT_ERR=10036,exports.POST_WXSS_ERR=10037,exports.MINIFY_WXML_ERR=10038,exports.SUMMER_PLUGIN_ERR=10045,exports.SUMMER_PLUGIN_CODE_ERR=10046,exports.GAME_PLUGIN_LIB_MD5_NOT_MATCH=10081,exports.PLUGIN_JSON_FILE_NOT_FOUND=10091,exports.PLUGIN_JSON_CONTENT_ERR=10092,exports.PLUGIN_JSON_PARSE_ERR=10093,exports.FILE_NOT_FOUND=10005,exports.JSON_PARSE_ERR=10006,exports.FILE_NOT_UTF8=10031,exports.JSON_CONTENT_ERR=10009,exports.APP_JSON_NOT_FOUND=2e4,exports.GET_SIGNATURE_RAND_STRING_ERR=20001,exports.GENERATE_LOCAL_SIGNATURE_ERR=20002,exports.UPLOAD_CGI_ERR=20003,exports.CODE_PROTECT_TRANSLATE_FILENAME=20004,exports.UPLOAD_JS_SERVER_CGI_ERR=20005,exports.GET_LATEST_VERSION_CGI_ERR=20006,exports.PROJECT_TYPE_ERROR=3e4,exports.MINI_PROGRAM_MAIN_PACKAGE_ROOT="__APP__",exports.MINI_GAME_MAIN_PACKAGE_ROOT="__GAME__",exports.MINI_GAME_WORKERS_PACKAGE_ROOT="workers.js",exports.APP_TYPE={NORMAL:0,PLUGIN:1,SHOP:2,MINISHOP:3,GAME:4,CARD:5,NATIVE:7},function(e){e.miniProgram="miniProgram",e.miniProgramPlugin="miniProgramPlugin",e.miniGame="miniGame",e.miniGamePlugin="miniGamePlugin"}(COMPILE_TYPE=exports.COMPILE_TYPE||(exports.COMPILE_TYPE={})),exports.TABBAR_ICON_WHITE_LIST=[".png",".jpg",".jpeg"],exports.DefaultProjectAttr={platform:!1,appType:0,isSandbox:!1,released:!1,setting:{MaxCodeSize:2,MaxSubpackageSubCodeSize:2,MaxSubpackageFullCodeSize:12,NavigateMiniprogramLimit:10,MaxSubPackageLimit:100,MinTabbarCount:2,MaxTabbarCount:5,MaxCustomTabbarCount:10,MaxTabbarIconSize:40}},exports.jsonVariablePropertyWhiteList={windowPropertWhiteList:["navigationBarBackgroundColor","navigationBarTextStyle","backgroundColor","backgroundTextStyle","backgroundColorTop","backgroundColorBottom","backgroundColorContent"],tabBarPropertyWhiteList:["color","selectedColor","backgroundColor","borderStyle"],tabbarListItemPropertyWhiteList:["iconPath","selectedIconPath"]},exports.extendedLibMap={kbone:{packages:["miniprogram-element","miniprogram-render"]},weui:{packages:["weui-miniprogram"]}},exports.multiPlatformRoot="miniapp",exports.MainPkg="__APP__",exports.FullPkg="__FULL__",exports.getDefaultIgnores=getDefaultIgnores,exports.compileTypeConfig={weapp:"weapp",game:"game",plugin:"plugin",gamePlugin:"gamePlugin"},function(e){e.Babel="babel",e.Acorn="acorn"}(AstType=exports.AstType||(exports.AstType={})),function(e){e[e.Include=0]="Include",e[e.PackOptionsIgnore=1]="PackOptionsIgnore",e[e.AnalyseNoUse=2]="AnalyseNoUse",e[e.PartialCompileNoUse=3]="PartialCompileNoUse"}(EFilterCode=exports.EFilterCode||(exports.EFilterCode={})),exports.MAX_CODE_LENGTH=2048e3;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const config_1=require("../config"),compileJS=()=>require("./compilejs"),compileWXSS=()=>require("./compilewxss"),
|
|
1
|
+
"use strict";const config_1=require("../config"),compileJS=()=>require("./compilejs"),compileWXSS=()=>require("./compilewxss"),summerWorker=()=>require("../../../summer/worker");async function processTask(e,r){return e===config_1.TASK_NAME.COMPILE_JS?require("./compilejs")(r):e===config_1.TASK_NAME.COMPILE_WXSS?require("./compilewxss")(r):e===config_1.TASK_NAME.SUMMER_HOOK?require("../../../summer/worker").runSummerPluginHook(r):void 0}module.exports=processTask;
|