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.
- package/CHANGELOG.md +4 -0
- package/README.md +4 -0
- package/dist/@types/ci/utils/tools.d.ts +1 -0
- package/dist/@types/common/code-analyse/index.d.ts +16 -1
- package/dist/@types/config/config.d.ts +8 -1
- package/dist/@types/index.d.ts +2 -1
- package/dist/@types/modules/corecompiler/baseCompiler.d.ts +6 -0
- package/dist/@types/modules/corecompiler/original/validate/schemaValidate.d.ts +1 -1
- package/dist/@types/modules/corecompiler/original/workerThread/task/minifywxml.d.ts +21 -25
- package/dist/@types/modules/corecompiler/originalCompiler.d.ts +1 -0
- package/dist/@types/modules/corecompiler/processHandler.d.ts +4 -3
- package/dist/@types/modules/corecompiler/summer/graph/appconf.d.ts +4 -0
- package/dist/@types/modules/corecompiler/summer/graph/appgraph.d.ts +6 -3
- package/dist/@types/modules/corecompiler/summer/graph/basegraph.d.ts +13 -3
- package/dist/@types/modules/corecompiler/summer/graph/gamegraph.d.ts +6 -3
- package/dist/@types/modules/corecompiler/summer/graph/gameplugingraph.d.ts +5 -4
- package/dist/@types/modules/corecompiler/summer/graph/plugingraph.d.ts +5 -4
- package/dist/@types/modules/corecompiler/summer/module.d.ts +20 -14
- package/dist/@types/modules/corecompiler/summer/plugins/base/javascript.d.ts +1 -1
- package/dist/@types/modules/corecompiler/summer/plugins/base/swc.d.ts +1 -1
- package/dist/@types/modules/corecompiler/summer/summer.d.ts +5 -1
- package/dist/@types/modules/corecompiler/summerCompiler.d.ts +16 -5
- package/dist/@types/modules/createSummer.d.ts +3 -2
- package/dist/@types/modules/index.d.ts +6 -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/ci.d.ts +2 -1
- package/dist/@types/types/core.d.ts +22 -3
- package/dist/@types/types/devtools.d.ts +18 -6
- package/dist/@types/types/miniapp/index.d.ts +5 -0
- package/dist/@types/types/miniprogram-json/app.d.ts +16 -6
- package/dist/@types/types/summer.d.ts +1 -0
- package/dist/@types/utils/locales/locales.d.ts +5 -0
- package/dist/@types/utils/locales/zh.d.ts +5 -0
- package/dist/@types/utils/messageHub.d.ts +1 -1
- package/dist/@types/utils/miniapp-builder.d.ts +6 -1
- package/dist/@types/utils/packOptionsHelper.d.ts +15 -2
- package/dist/@types/utils/progressRecorder.d.ts +1 -1
- package/dist/@types/utils/tools.d.ts +5 -0
- package/dist/@types/utils/usbProcess.d.ts +3 -0
- package/dist/ci/utils/filterUnusedFile.js +1 -1
- package/dist/ci/utils/tools.js +1 -1
- package/dist/common/code-analyse/index.js +1 -1
- package/dist/config/config.js +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/corecompiler/baseCompiler.js +1 -1
- package/dist/modules/corecompiler/original/compile/common.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/task/compilejs.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/task/index.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/task/minifywxml.js +1 -1
- package/dist/modules/corecompiler/originalCompiler.js +1 -1
- package/dist/modules/corecompiler/processHandler.js +1 -1
- package/dist/modules/corecompiler/summer/graph/appconf.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/graph/gamegraph.js +1 -1
- package/dist/modules/corecompiler/summer/graph/gameplugingraph.js +1 -1
- package/dist/modules/corecompiler/summer/graph/plugingraph.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/advance/precompileProject.js +1 -1
- package/dist/project/baseProject.js +1 -1
- package/dist/schema/@types/appjson.js +1 -0
- package/dist/schema/@types/extjson.js +1 -0
- package/dist/schema/@types/gamejson.js +1 -0
- package/dist/schema/@types/pagejson.js +1 -0
- package/dist/schema/@types/pluginjson.js +1 -0
- package/dist/schema/@types/pluginpagejson.js +1 -0
- package/dist/schema/@types/projectconfigjson.js +1 -0
- package/dist/schema/@types/projectprivateconfigjson.js +1 -0
- package/dist/schema/@types/sitemapjson.js +1 -0
- package/dist/schema/@types/themejson.js +1 -0
- package/dist/schema/dist/app.js +1 -1
- package/dist/schema/dist/ext.js +1 -1
- package/dist/schema/dist/game.js +1 -1
- package/dist/schema/dist/page.js +1 -1
- package/dist/schema/dist/plugin.js +1 -1
- package/dist/schema/dist/pluginpage.js +1 -1
- package/dist/schema/dist/projectconfig.js +37 -1
- package/dist/schema/dist/projectprivateconfig.js +1 -1
- package/dist/schema/dist/sitemap.js +1 -1
- package/dist/schema/dist/theme.js +1 -1
- package/dist/schema/src/index.js +1 -0
- package/dist/utils/codesign.js +1 -1
- package/dist/utils/locales/en.js +1 -1
- package/dist/utils/locales/zh.js +1 -1
- package/dist/utils/miniapp-builder.js +1 -1
- package/dist/utils/miniappJson.js +1 -1
- package/dist/utils/packOptionsHelper.js +1 -1
- package/dist/utils/progressRecorder.js +1 -1
- package/dist/utils/subprocess/processManager.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,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';
|
|
@@ -67,6 +67,7 @@ export declare namespace MiniProgramCI {
|
|
|
67
67
|
ignore: MiniProgramDevtools.IProjectConfigPackOption[];
|
|
68
68
|
include: MiniProgramDevtools.IProjectConfigPackOption[];
|
|
69
69
|
};
|
|
70
|
+
destroy?: () => void;
|
|
70
71
|
}
|
|
71
72
|
interface IStringKeyMap<T = any> {
|
|
72
73
|
[propName: string]: T;
|
|
@@ -104,7 +105,7 @@ export declare namespace MiniProgramCI {
|
|
|
104
105
|
interface ITaskStatus {
|
|
105
106
|
id: string;
|
|
106
107
|
message: string;
|
|
107
|
-
status: 'doing' | 'done' | 'fail';
|
|
108
|
+
status: 'doing' | 'done' | 'fail' | 'warn';
|
|
108
109
|
}
|
|
109
110
|
interface IDevToolsCompileCache {
|
|
110
111
|
init: (project: IProject) => Promise<void>;
|
|
@@ -45,11 +45,16 @@ export declare namespace MiniProgramCore {
|
|
|
45
45
|
getAllFileInfo: (prefix?: string) => IFileInfos;
|
|
46
46
|
onFileChange?: any;
|
|
47
47
|
}
|
|
48
|
+
type IGetPackageFilesOptions = {
|
|
49
|
+
graphId: ProjectType;
|
|
50
|
+
root: string;
|
|
51
|
+
};
|
|
48
52
|
interface IPreCompileProject extends IProject {
|
|
49
53
|
project: MiniProgramCI.IProject;
|
|
50
54
|
targetPlatform?: ITargetPlatform;
|
|
51
55
|
targetPlatformDefines?: ITargetPlatformDefine;
|
|
52
56
|
conditionCompiler?: any;
|
|
57
|
+
updateOptions(options: MiniProgramDevtools.IDevtoolsProjectInfo): void;
|
|
53
58
|
getSrcFile(prefix: string, filePath: string): Buffer;
|
|
54
59
|
}
|
|
55
60
|
interface IStringKeyMap<T = any> {
|
|
@@ -73,11 +78,11 @@ export declare namespace MiniProgramCore {
|
|
|
73
78
|
[key: string]: any;
|
|
74
79
|
}
|
|
75
80
|
type ICompileSettings = MiniProgramCI.ICompileSettings;
|
|
76
|
-
type IResultType = 'prod' | 'dev';
|
|
81
|
+
type IResultType = 'prod' | 'dev' | 'preview';
|
|
77
82
|
interface ITaskStatus {
|
|
78
83
|
id: string;
|
|
79
84
|
message: string;
|
|
80
|
-
status: 'doing' | 'fail' | 'done';
|
|
85
|
+
status: 'doing' | 'fail' | 'done' | 'warn';
|
|
81
86
|
}
|
|
82
87
|
interface IDevToolsCompileCache {
|
|
83
88
|
init: (project: IProject) => Promise<void>;
|
|
@@ -106,7 +111,21 @@ export declare namespace MiniProgramCore {
|
|
|
106
111
|
compilePages?: string[];
|
|
107
112
|
analyzer?: Analyzer;
|
|
108
113
|
disableSpreadingUsingComponents?: boolean;
|
|
109
|
-
resultType
|
|
114
|
+
resultType: IResultType;
|
|
115
|
+
useCache?: boolean;
|
|
116
|
+
targetPlatform?: 'mini-ios' | 'mini-android' | 'miniprogram';
|
|
117
|
+
}
|
|
118
|
+
interface ICompileOptionsWithFileList {
|
|
119
|
+
nameMapping?: IStringKeyMap<string>;
|
|
120
|
+
setting?: MiniProgramDevtools.IProjectSetting;
|
|
121
|
+
fileList: string[];
|
|
122
|
+
onProgressUpdate?: (task: ITaskStatus) => void;
|
|
123
|
+
devToolsCompileCache?: IDevToolsCompileCache;
|
|
124
|
+
__compileDebugInfo__?: IDevtoolsDebugInfo;
|
|
125
|
+
compilePages?: string[];
|
|
126
|
+
analyzer?: Analyzer;
|
|
127
|
+
disableSpreadingUsingComponents?: boolean;
|
|
128
|
+
resultType: IResultType;
|
|
110
129
|
}
|
|
111
130
|
type IProjectAttr = MiniProgramCI.IProjectAttr;
|
|
112
131
|
interface IWarnItem {
|
|
@@ -11,6 +11,7 @@ export declare namespace MiniProgramDevtools {
|
|
|
11
11
|
sitemap: any;
|
|
12
12
|
theme: any;
|
|
13
13
|
}
|
|
14
|
+
type IFilterFactory = (resultType: MiniProgramCore.IResultType) => Promise<(graph: GraphId, abFilePath: string) => number>;
|
|
14
15
|
interface IGameConf {
|
|
15
16
|
app: any;
|
|
16
17
|
packages: Record<string, any>;
|
|
@@ -24,7 +25,7 @@ export declare namespace MiniProgramDevtools {
|
|
|
24
25
|
plugin: any;
|
|
25
26
|
}
|
|
26
27
|
type IShowBuildLog = (msgId: string, type: IBuildLogType, text: string) => void;
|
|
27
|
-
type ProgressUpdate = (id: number, status: 'doing' | 'fail' | 'done', message: string) => void;
|
|
28
|
+
type ProgressUpdate = (id: number | string, status: 'doing' | 'fail' | 'done' | 'warn', message: string) => void;
|
|
28
29
|
type ISummerPluginConfig = Array<string | [string, MiniProgramSummer.SummerPluginOptions]>;
|
|
29
30
|
type IBabelSetting = {
|
|
30
31
|
outputPath?: string;
|
|
@@ -44,15 +45,15 @@ export declare namespace MiniProgramDevtools {
|
|
|
44
45
|
pluginRoot: string;
|
|
45
46
|
summerPlugins: ISummerPluginConfig;
|
|
46
47
|
setting: MiniProgramDevtools.IProjectSetting;
|
|
48
|
+
packOptions?: {
|
|
49
|
+
ignore: MiniProgramDevtools.IProjectConfigPackOption[];
|
|
50
|
+
include: MiniProgramDevtools.IProjectConfigPackOption[];
|
|
51
|
+
};
|
|
47
52
|
}
|
|
48
53
|
type GraphId = MiniProgramCore.ProjectType;
|
|
49
54
|
type IGetConfOptions = {
|
|
50
55
|
graphId: GraphId;
|
|
51
56
|
};
|
|
52
|
-
type IGetPackageFilesOptions = {
|
|
53
|
-
graphId: GraphId;
|
|
54
|
-
root: string;
|
|
55
|
-
};
|
|
56
57
|
type ICompileSingleCodeOptions = {
|
|
57
58
|
graphId: GraphId;
|
|
58
59
|
filePath: string;
|
|
@@ -67,7 +68,6 @@ export declare namespace MiniProgramDevtools {
|
|
|
67
68
|
graphId: GraphId;
|
|
68
69
|
cacheMd5: Record<string, string>;
|
|
69
70
|
fileList: string[];
|
|
70
|
-
package?: string;
|
|
71
71
|
};
|
|
72
72
|
interface IDevtoolsProject {
|
|
73
73
|
id: string;
|
|
@@ -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;
|
|
@@ -17,12 +17,7 @@ export declare namespace AppJSON {
|
|
|
17
17
|
}
|
|
18
18
|
interface ITabBar {
|
|
19
19
|
custom?: boolean;
|
|
20
|
-
list: Array<
|
|
21
|
-
pagePath: string;
|
|
22
|
-
text?: string;
|
|
23
|
-
iconPath?: string;
|
|
24
|
-
selectedIconPath?: string;
|
|
25
|
-
}>;
|
|
20
|
+
list: Array<ITabbarItem>;
|
|
26
21
|
borderStyle?: 'black' | 'white';
|
|
27
22
|
position?: 'bottom' | 'top';
|
|
28
23
|
color?: string;
|
|
@@ -120,6 +115,16 @@ export declare namespace AppJSON {
|
|
|
120
115
|
}>;
|
|
121
116
|
};
|
|
122
117
|
componentFramework?: 'glass-easel' | 'exparser';
|
|
118
|
+
supportedMaterials?: ISupportMaterial[];
|
|
119
|
+
miniApp?: {
|
|
120
|
+
useAuthorizePage: boolean;
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
interface ISupportMaterial {
|
|
124
|
+
materialType: string;
|
|
125
|
+
name: string;
|
|
126
|
+
desc: string;
|
|
127
|
+
path: string;
|
|
123
128
|
}
|
|
124
129
|
interface IPluginConfig {
|
|
125
130
|
provider: string;
|
|
@@ -140,6 +145,10 @@ export declare namespace AppJSON {
|
|
|
140
145
|
useExtendedLib?: {
|
|
141
146
|
[key: string]: boolean | string;
|
|
142
147
|
};
|
|
148
|
+
meta?: {
|
|
149
|
+
type?: string;
|
|
150
|
+
};
|
|
151
|
+
renderer?: Renderer;
|
|
143
152
|
}
|
|
144
153
|
type requiredPrivateInfosValues = 'getFuzzyLocation' | 'getLocation' | 'onLocationChange' | 'startLocationUpdate' | 'startLocationUpdateBackground' | 'chooseLocation' | 'choosePoi' | 'chooseAddress';
|
|
145
154
|
interface IWindowConfig {
|
|
@@ -173,6 +182,7 @@ export declare namespace AppJSON {
|
|
|
173
182
|
text?: string;
|
|
174
183
|
iconPath?: string;
|
|
175
184
|
selectedIconPath?: string;
|
|
185
|
+
renderer?: 'skyline' | 'webview' | 'cover-view';
|
|
176
186
|
badge?: {};
|
|
177
187
|
}
|
|
178
188
|
interface INetworkTimeoutConfig {
|
|
@@ -106,6 +106,11 @@ declare const _default: {
|
|
|
106
106
|
RELATED_NODE_MODULES_NOT_FOUND: import("./fomatable_string").FormatableString;
|
|
107
107
|
PACKAGE_JSON_PATH_IN_VALID: import("./fomatable_string").FormatableString;
|
|
108
108
|
ACCOUNT_CARD_PACKAPGE_IN_VALID: import("./fomatable_string").FormatableString;
|
|
109
|
+
UNUSE_FILE_LIST: import("./fomatable_string").FormatableString;
|
|
110
|
+
PACK_OPTIONS_IGNORE_LIST: import("./fomatable_string").FormatableString;
|
|
111
|
+
PARTIAL_COMPILE_IGNORE_LIST: import("./fomatable_string").FormatableString;
|
|
112
|
+
UNKNOWN_REASON_INGORE_LIST: import("./fomatable_string").FormatableString;
|
|
113
|
+
LARGEFILE_WARNING: import("./fomatable_string").FormatableString;
|
|
109
114
|
};
|
|
110
115
|
setLocale: (tag: string) => void;
|
|
111
116
|
getLocale: () => string;
|
|
@@ -106,5 +106,10 @@ declare const _default: {
|
|
|
106
106
|
RELATED_NODE_MODULES_NOT_FOUND: FormatableString;
|
|
107
107
|
PACKAGE_JSON_PATH_IN_VALID: FormatableString;
|
|
108
108
|
ACCOUNT_CARD_PACKAPGE_IN_VALID: FormatableString;
|
|
109
|
+
UNUSE_FILE_LIST: FormatableString;
|
|
110
|
+
PACK_OPTIONS_IGNORE_LIST: FormatableString;
|
|
111
|
+
PARTIAL_COMPILE_IGNORE_LIST: FormatableString;
|
|
112
|
+
UNKNOWN_REASON_INGORE_LIST: FormatableString;
|
|
113
|
+
LARGEFILE_WARNING: FormatableString;
|
|
109
114
|
};
|
|
110
115
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MiniProgramCore } from '../types';
|
|
2
|
-
export type IBuildLogType = 'doing' | 'success' | 'error';
|
|
2
|
+
export type IBuildLogType = 'doing' | 'success' | 'error' | 'warn';
|
|
3
3
|
export interface IMessageHub {
|
|
4
4
|
showStatus?: (id: number, message: string, type?: 'info' | 'success' | 'fail') => void;
|
|
5
5
|
hideStatus?: (id: number) => void;
|
|
@@ -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>;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { MiniProgramCore, MiniProgramDevtools } from '../types';
|
|
2
|
+
import { Analyzer } from '../common/code-analyse';
|
|
2
3
|
declare class PackOptionsHelper {
|
|
3
4
|
private packOptionIgnores;
|
|
4
5
|
private packOptionIncludes;
|
|
6
|
+
private ignoreUploadUnusedFiles;
|
|
7
|
+
private ignoreDevUnusedFiles;
|
|
8
|
+
private unusedFiles;
|
|
9
|
+
private extOpts;
|
|
10
|
+
setExtOpts(options?: {
|
|
11
|
+
include?: MiniProgramDevtools.IProjectConfigPackOption[];
|
|
12
|
+
ignore?: MiniProgramDevtools.IProjectConfigPackOption[];
|
|
13
|
+
}): void;
|
|
5
14
|
updateState(project: MiniProgramCore.IPreCompileProject): void;
|
|
6
|
-
isUnuserFilesEnable():
|
|
15
|
+
isUnuserFilesEnable(production?: boolean): boolean;
|
|
7
16
|
filter(fileList: string[], production?: boolean): string[];
|
|
8
17
|
isIgnored(file: string, production?: boolean): any;
|
|
9
18
|
isNotIgnored(file: string, production?: boolean): boolean;
|
|
@@ -11,7 +20,11 @@ declare class PackOptionsHelper {
|
|
|
11
20
|
ignore?: MiniProgramDevtools.IProjectConfigPackOption[];
|
|
12
21
|
include?: MiniProgramDevtools.IProjectConfigPackOption[];
|
|
13
22
|
}): any;
|
|
14
|
-
|
|
23
|
+
isFileIgnored(file: string, ignores?: MiniProgramDevtools.IProjectConfigPackOption[]): any;
|
|
24
|
+
isFileIncluded(file: string, includes?: MiniProgramDevtools.IProjectConfigPackOption[]): any;
|
|
25
|
+
isIgnoreByUnusedFiles(file: string, production?: boolean): boolean;
|
|
26
|
+
getUnusedFiles(): Set<string>;
|
|
27
|
+
initUnusedFiles(project: MiniProgramCore.IPreCompileProject, analyzer: Analyzer, production?: boolean): Promise<void>;
|
|
15
28
|
}
|
|
16
29
|
declare const _default: PackOptionsHelper;
|
|
17
30
|
export default _default;
|
|
@@ -3,7 +3,7 @@ export declare function getPrintTime(): string;
|
|
|
3
3
|
export declare class Recorder {
|
|
4
4
|
private sendProgress;
|
|
5
5
|
progress: (message: string) => void;
|
|
6
|
-
message
|
|
6
|
+
message(type: 'doing' | 'fail' | 'done' | 'warn', message: string): void;
|
|
7
7
|
constructor(sendProgress: MiniProgramDevtools.ProgressUpdate);
|
|
8
8
|
start(message: string): {
|
|
9
9
|
(err?: any, res?: any): void;
|
|
@@ -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;
|
|
@@ -39,3 +40,7 @@ export declare function isLeftSubPathOfRight(child: string, parent: string): boo
|
|
|
39
40
|
export declare function isGameApp(project: MiniProgramCI.IProject): boolean;
|
|
40
41
|
export declare const checkIsUseCompilerPlugins: () => boolean;
|
|
41
42
|
export declare const sourcePathToTargetPath: (sourcePath: string) => string;
|
|
43
|
+
export declare function getCompilerPlugins(project: MiniProgramCore.IPreCompileProject): ("typescript" | "less" | "sass")[];
|
|
44
|
+
export declare function getSupportCodeFileExtSet(project: MiniProgramCore.IPreCompileProject): Set<string>;
|
|
45
|
+
export declare function isCodeFile(ext: string): boolean;
|
|
46
|
+
export declare function isMiniProgramCodeFile(ext: string): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.filterUnusedFile=void 0;const tslib_1=require("tslib"),projectconfig_1=require("../../modules/corecompiler/original/json/projectconfig"),path=tslib_1.__importStar(require("path")),code_analyse_1=require("../../common/code-analyse"),code_analyse_2=require("../code-analyse"),babel_helper_1=require("../../utils/babel_helper"),tools_1=require("../../utils/tools");class CodeDataFileHelper{constructor(e,t){this.project=e,this.codes=t,this._dirSet=new Set,this._fileSet=new Set,this._cacheFileSize=new Map;for(const e of Object.keys(this.codes))this._fileSet.add(e.startsWith("/")?e.replace(/^\//,""):e),this.cacheDirName(path.posix.dirname(e))}cacheDirName(e){this._dirSet.has(e)||(this._dirSet.add(e),this.cacheDirName(path.posix.dirname(e)))}cacheFileSize(e){if(this._cacheFileSize.has(e))return this._cacheFileSize.get(e);const t=this.codes[e];let i=0;return i="string"==typeof t?Buffer.from(t,"utf-8").length:t.length,this._cacheFileSize.set(e,i),i}stat(e){const t=this._fileSet.has(e),i=this._dirSet.has(e);if(!t&&!i)return;let r=0;return r=i?Object.keys(this.codes).filter(t=>t.startsWith(e)).reduce((e,t)=>e+this.cacheFileSize(t),0):this.cacheFileSize(e),{isFile:t,isDirectory:i,size:r,mtime:0}}mtime(e){return 0}exist(e){return this.existFile(e)||this.existDir(e)}existDir(e){return e.endsWith("/")&&(e=e.replace(/\/$/,"")),this._dirSet.has(e)}existFile(e){return this._fileSet.has(e)}getFileList(e="",t=""){return Array.from(this._fileSet).filter(i=>(!t||path.extname(i)===t)&&!(e&&!i.startsWith(e)))}async getString(e){const t=this.codes[e];if("string"==typeof t)return t;if(Buffer.isBuffer(t))return t.toString("utf-8");throw new Error(e+" is not in codes")}async getLocalFileString(e){return this.project.getFile(this.project.miniprogramRoot,e).toString("utf-8")}async getJSON(e){const t=await this.getString(e);try{return JSON.parse(t)}catch(e){return null}}async readdir(e){e.endsWith("/")||(e+="/");const t=Array.from(this._fileSet).filter(t=>t.startsWith(e));return Array.from(this._dirSet).filter(t=>t.startsWith(e)).concat(t).filter(t=>t.slice(e.length).indexOf("/")<0).map(t=>t.slice(e.length))}watchFileChange(e){
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.filterUnusedFile=void 0;const tslib_1=require("tslib"),projectconfig_1=require("../../modules/corecompiler/original/json/projectconfig"),path=tslib_1.__importStar(require("path")),code_analyse_1=require("../../common/code-analyse"),code_analyse_2=require("../code-analyse"),babel_helper_1=require("../../utils/babel_helper"),tools_1=require("../../utils/tools");class CodeDataFileHelper{constructor(e,t){this.project=e,this.codes=t,this._dirSet=new Set,this._fileSet=new Set,this._cacheFileSize=new Map;for(const e of Object.keys(this.codes))this._fileSet.add(e.startsWith("/")?e.replace(/^\//,""):e),this.cacheDirName(path.posix.dirname(e))}cacheDirName(e){this._dirSet.has(e)||(this._dirSet.add(e),this.cacheDirName(path.posix.dirname(e)))}cacheFileSize(e){if(this._cacheFileSize.has(e))return this._cacheFileSize.get(e);const t=this.codes[e];let i=0;return i="string"==typeof t?Buffer.from(t,"utf-8").length:t.length,this._cacheFileSize.set(e,i),i}stat(e){const t=this._fileSet.has(e),i=this._dirSet.has(e);if(!t&&!i)return;let r=0;return r=i?Object.keys(this.codes).filter(t=>t.startsWith(e)).reduce((e,t)=>e+this.cacheFileSize(t),0):this.cacheFileSize(e),{isFile:t,isDirectory:i,size:r,mtime:0}}mtime(e){return 0}exist(e){return this.existFile(e)||this.existDir(e)}existDir(e){return e.endsWith("/")&&(e=e.replace(/\/$/,"")),this._dirSet.has(e)}existFile(e){return this._fileSet.has(e)}getFileList(e="",t=""){return Array.from(this._fileSet).filter(i=>(!t||path.extname(i)===t)&&!(e&&!i.startsWith(e)))}async getString(e){const t=this.codes[e];if("string"==typeof t)return t;if(Buffer.isBuffer(t))return t.toString("utf-8");throw new Error(e+" is not in codes")}async getLocalFileString(e){return this.project.getFile(this.project.miniprogramRoot,e).toString("utf-8")}async getJSON(e){const t=await this.getString(e);try{return JSON.parse(t)}catch(e){return null}}async readdir(e){e.endsWith("/")||(e+="/");const t=Array.from(this._fileSet).filter(t=>t.startsWith(e));return Array.from(this._dirSet).filter(t=>t.startsWith(e)).concat(t).filter(t=>t.slice(e.length).indexOf("/")<0).map(t=>t.slice(e.length))}watchFileChange(e){e()}destroy(){}}async function filterUnusedFile(e,t,i){var r,s;if("miniProgram"!==t.type)return i;const n=await(0,projectconfig_1.getProjectConfigJSON)(t);let o=!1;return o=e?!1!==(null===(r=n.setting)||void 0===r?void 0:r.ignoreDevUnusedFiles):!1!==(null===(s=n.setting)||void 0===s?void 0:s.ignoreUploadUnusedFiles),o?doFilterUnusedFile(t,i):i}function checkUnusedCodeFiles(e,t){var i;const r=t.fileHelper.getFileList("").filter(e=>{return t=path.posix.extname(e),/\.(json|wxml|wxss|js|wxs|ts|less|sass|scss)/.test(t);var t}),s=new Set;t.graph.modules.forEach(e=>{const t=r.find(t=>t===e.path);t&&s.add(t)});const n=(0,babel_helper_1.getBabelOutputPath)((null===(i=(0,projectconfig_1.getProjectConfigJSON)(e))||void 0===i?void 0:i.setting)||{});return r.forEach(e=>{(function(e){return e.indexOf(n)>=0})(e)&&s.add(e)}),r.filter(e=>!s.has(e))}async function doFilterUnusedFile(e,t){var i;const r=(0,projectconfig_1.getProjectConfigJSON)(e),s=(0,code_analyse_2.transCompileType)(e);if("gamePlugin"===s)throw new Error("gamePlugin is not support yet!");let n="plugin"===s?r.pluginRoot:r.miniprogramRoot;n=n?path.posix.join(e.projectPath,n):e.projectPath;const o=new CodeDataFileHelper(e,t),l=new code_analyse_1.Analyzer({root:n,type:s,fileHelper:o,plugins:[]});await l.analyse();const a=checkUnusedCodeFiles(e,l),c=(null===(i=r.packOptions)||void 0===i?void 0:i.include)||[];return((e,t)=>{const i=Object.keys(e);for(const r of i)t(r)&&delete e[r];return e})(t,e=>(e=>{if((0,tools_1.isFileIncluded)(e,c))return!1;const t=e.startsWith("/")?e:"/"+e;for(const e of a){if(t===(e.startsWith("/")?e:"/"+e))return!0}return!1})(e))}exports.filterUnusedFile=filterUnusedFile;
|
package/dist/ci/utils/tools.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.formatCISetting=exports.isUndefined=exports.checkIsUseCompilerPlugins=exports.isGameApp=void 0;const types_1=require("../../types"),projectconfig_1=require("../../modules/corecompiler/original/json/projectconfig");function isGameApp(i){return i.type===types_1.EProjectType.miniGame||i.type===types_1.EProjectType.miniGamePlugin}exports.isGameApp=isGameApp;const checkIsUseCompilerPlugins=i=>{var e,n,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.formatCISetting=exports.isUndefined=exports.checkIsUseCompilerPlugins=exports.isGameApp=exports.CompileSettingsKeysInProjectConfig=void 0;const types_1=require("../../types"),projectconfig_1=require("../../modules/corecompiler/original/json/projectconfig");function isGameApp(i){return i.type===types_1.EProjectType.miniGame||i.type===types_1.EProjectType.miniGamePlugin}exports.CompileSettingsKeysInProjectConfig=["es6","es7","enhance","minified","minify","codeProtect","uglifyFileName","postcss","minifyJS","minifyWXML","minifyWXSS","autoPrefixWXSS","disableUseStrict","compileWorklet"],exports.isGameApp=isGameApp;const checkIsUseCompilerPlugins=i=>{var e,n,t;return!isGameApp(i)||(null===(e=i.setting)||void 0===e?void 0:e.condition)||((null===(n=i.setting)||void 0===n?void 0:n.useCompilerPlugins)||[]).length>0||(null===(t=i.setting)||void 0===t?void 0:t.swc)};function isUndefined(i){return void 0===i}function formatCISetting(i,e){var n,t,s,o,d,f,r,l,c;const m=(0,projectconfig_1.getProjectConfigJSON)(i);if(e.useProjectConfig)return Object.assign(Object.assign({},m.setting),{minifyWXSS:!1!==e.minifyWXSS&&(!!e.minify||(isUndefined(e.minifyWXSS)?null===(n=m.setting)||void 0===n?void 0:n.minifyWXSS:!!e.minifyWXSS)),minifyWXML:!1!==e.minifyWXML&&(!!e.minify||(isUndefined(e.minifyWXML)?null===(t=m.setting)||void 0===t?void 0:t.minifyWXML:!!e.minifyWXML)),minified:!1!==e.minifyJS&&(!!e.minify||(isUndefined(e.minifyJS)?null===(s=m.setting)||void 0===s?void 0:s.minified:!!e.minifyJS)),postcss:isUndefined(e.autoPrefixWXSS)?null===(o=m.setting)||void 0===o?void 0:o.postcss:!!e.autoPrefixWXSS,disableUseStrict:isUndefined(e.disableUseStrict)?null===(d=m.setting)||void 0===d?void 0:d.disableUseStrict:!!e.disableUseStrict,compileWorklet:isUndefined(e.compileWorklet)?null===(f=m.setting)||void 0===f?void 0:f.compileWorklet:!!e.compileWorklet,uglifyFileName:isUndefined(e.codeProtect)?null===(r=m.setting)||void 0===r?void 0:r.uglifyFileName:!!e.codeProtect,es6:isUndefined(e.es6)&&isUndefined(e.es7)?null===(l=m.setting)||void 0===l?void 0:l.es6:!!e.es6||!!e.es7,enhance:isUndefined(e.es6)&&isUndefined(e.es7)?null===(c=m.setting)||void 0===c?void 0:c.enhance:!!e.es6||!!e.es7});const p=Object.assign({},m.setting);for(const i in p)exports.CompileSettingsKeysInProjectConfig.indexOf(i)>-1&&delete p[i];return Object.assign(Object.assign({},p),{minifyWXSS:!1!==e.minifyWXSS&&(e.minify||!!e.minifyWXSS),minifyWXML:!1!==e.minifyWXML&&(e.minify||!!e.minifyWXML),minified:!1!==e.minifyJS&&(e.minify||!!e.minifyJS),postcss:!!e.autoPrefixWXSS,disableUseStrict:!!e.disableUseStrict,compileWorklet:!!e.compileWorklet,uglifyFileName:!!e.codeProtect,es6:!!e.es6||!!e.es7,enhance:!!e.es6||!!e.es7})}exports.checkIsUseCompilerPlugins=checkIsUseCompilerPlugins,exports.isUndefined=isUndefined,exports.formatCISetting=formatCISetting;
|