miniprogram-ci 2.1.5 → 2.1.7
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/cos-upload.d.ts +5 -0
- package/dist/@types/ci/index.d.ts +2 -0
- package/dist/@types/ci/miniapp/archive.d.ts +18 -0
- package/dist/@types/ci/miniapp/checkBuildArgument.d.ts +5 -0
- package/dist/@types/ci/miniapp/upload.d.ts +2 -1
- package/dist/@types/ci/miniapp-cloud-upload.d.ts +15 -0
- package/dist/@types/common/cloud-api/src/apis/tcb/tcb.apis.d.ts +7 -1
- package/dist/@types/common/cloud-api/src/transaction/contracts/tcb.contracts.d.ts +7 -1
- package/dist/@types/common/cloud-api/src/transaction/transactor.d.ts +1 -0
- package/dist/@types/common/cloud-api/src/transaction/validations/billing.validations.d.ts +2 -0
- package/dist/@types/common/cloud-api/src/transaction/validations/common.validations.d.ts +8 -1
- package/dist/@types/common/cloud-api/src/transaction/validations/tcb.validations.d.ts +7 -1
- package/dist/@types/common/cloud-api/src/transaction/validations/validations.d.ts +1 -0
- package/dist/@types/common/code-analyse/index.d.ts +2 -1
- package/dist/@types/config/config.d.ts +1 -1
- package/dist/@types/config/url.config.d.ts +2 -0
- package/dist/@types/index.d.ts +3 -2
- package/dist/@types/modules/corecompiler/summer/graph/appconf.d.ts +2 -0
- package/dist/@types/modules/corecompiler/summerCompiler.d.ts +1 -0
- package/dist/@types/modules/createSummer.d.ts +0 -1
- package/dist/@types/modules/nativecompiler/ios/buildCloud.d.ts +4 -2
- package/dist/@types/types/ci.d.ts +1 -0
- package/dist/@types/types/devtools.d.ts +1 -0
- package/dist/@types/types/miniapp/index.d.ts +1 -0
- package/dist/@types/utils/cosUpload.d.ts +37 -0
- package/dist/@types/utils/miniapp-builder.d.ts +1 -0
- package/dist/@types/utils/miniappJson.d.ts +124 -82
- package/dist/@types/utils/officialDonutPlugin.d.ts +3 -0
- package/dist/@types/utils/packOptionsHelper.d.ts +3 -1
- package/dist/@types/utils/report.d.ts +1 -1
- package/dist/@types/utils/tools.d.ts +2 -0
- package/dist/ci/android-miniapp-toolkit/dist/index.js +1 -1
- package/dist/ci/cos-upload.js +1 -1
- package/dist/ci/index.js +1 -1
- package/dist/ci/miniapp/archive.js +1 -1
- package/dist/ci/miniapp/checkBuildArgument.js +1 -1
- package/dist/ci/miniapp/upload.js +1 -1
- package/dist/ci/miniapp-cloud-upload.js +1 -0
- package/dist/ci/upload.js +1 -1
- package/dist/ci/utils/codeDenpendencyQualityChecker.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/common/cloud-api/src/apis/tcb/tcb.apis.js +1 -1
- package/dist/common/cloud-api/src/transaction/contracts/tcb.contracts.js +1 -1
- package/dist/common/cloud-api/src/transaction/validations/billing.validations.js +1 -0
- package/dist/common/cloud-api/src/transaction/validations/common.validations.js +1 -1
- package/dist/common/cloud-api/src/transaction/validations/tcb.validations.js +1 -1
- package/dist/common/cloud-api/src/transaction/validations/validations.js +1 -1
- package/dist/common/code-analyse/index.js +1 -1
- package/dist/config/config.js +1 -1
- package/dist/config/url.config.js +1 -1
- package/dist/index.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/summerCompiler.js +1 -1
- package/dist/modules/createSummer.js +1 -1
- package/dist/modules/fullcompiler/trans/wcc/build/darwin_arm64/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/darwin_arm64/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/darwin_x64/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/darwin_x64/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_arm64_release/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_arm64_release/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_x64_release/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/node_16.1.0_darwin_x64_release/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/win32_ia32/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/win32_ia32/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/win32_x64/wcc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/build/win32_x64/wcsc.node +0 -0
- package/dist/modules/fullcompiler/trans/wcc/lib/addonVersion.js +19 -0
- package/dist/modules/fullcompiler/trans/wcc/lib/index.js +4 -0
- package/dist/modules/fullcompiler/trans/wcc/lib/util.js +1134 -0
- package/dist/modules/fullcompiler/trans/wcc/lib/wcc.js +94 -0
- package/dist/modules/fullcompiler/trans/wcc/lib/wcsc.js +93 -0
- package/dist/modules/index.js +1 -1
- package/dist/modules/nativecompiler/ios/buildCloud.js +1 -1
- package/dist/modules/nativecompiler/ios/index.js +1 -1
- package/dist/static/scripts/resignIpa +17 -1
- package/dist/utils/cosUpload.js +1 -0
- package/dist/utils/miniapp-builder.js +1 -1
- package/dist/utils/miniappJson.js +1 -1
- package/dist/utils/officialDonutPlugin.js +1 -0
- package/dist/utils/packOptionsHelper.js +1 -1
- package/dist/utils/report.js +1 -1
- package/dist/utils/tools.js +1 -1
- package/package.json +6 -7
|
@@ -10,15 +10,17 @@ export declare enum PLATFORM {
|
|
|
10
10
|
PLUGIN = "mini-plugin"
|
|
11
11
|
}
|
|
12
12
|
export interface IAppMiniappJSON {
|
|
13
|
+
mockWithWxLoginToken?: string;
|
|
13
14
|
adapteByMiniprogram?: {
|
|
14
15
|
userName: string;
|
|
15
16
|
};
|
|
16
17
|
identityServiceConfig?: {
|
|
17
18
|
authorizeMiniprogramType: number;
|
|
18
19
|
miniprogramLoginPath: string;
|
|
20
|
+
adaptWxLogin?: boolean;
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
|
-
interface IOldMiniappJSON {
|
|
23
|
+
export interface IOldMiniappJSON {
|
|
22
24
|
name: string;
|
|
23
25
|
icon: string;
|
|
24
26
|
'mini-android': {
|
|
@@ -48,89 +50,130 @@ interface IOldMiniappJSON {
|
|
|
48
50
|
};
|
|
49
51
|
};
|
|
50
52
|
}
|
|
51
|
-
export interface
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
network: boolean;
|
|
61
|
-
scanner: boolean;
|
|
62
|
-
xweb: boolean;
|
|
63
|
-
};
|
|
64
|
-
icons: {
|
|
65
|
-
hdpi?: string;
|
|
66
|
-
xhdpi?: string;
|
|
67
|
-
xxhdpi?: string;
|
|
68
|
-
xxxhdpi?: string;
|
|
69
|
-
};
|
|
70
|
-
splashscreen: {
|
|
71
|
-
hdpi?: string;
|
|
72
|
-
xhdpi?: string;
|
|
73
|
-
xxhdpi?: string;
|
|
74
|
-
};
|
|
75
|
-
enableVConsole: boolean;
|
|
53
|
+
export interface IMiniAndroidMiniappJson {
|
|
54
|
+
sdkVersion: string;
|
|
55
|
+
toolkitVersion: string;
|
|
56
|
+
useExtendedSdk: {
|
|
57
|
+
media: boolean;
|
|
58
|
+
bluetooth: boolean;
|
|
59
|
+
network: boolean;
|
|
60
|
+
scanner: boolean;
|
|
61
|
+
xweb: boolean;
|
|
76
62
|
};
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
spotlightIcon80?: string;
|
|
94
|
-
spotlightIcon120?: string;
|
|
95
|
-
settingsIcon58?: string;
|
|
96
|
-
settingsIcon87?: string;
|
|
97
|
-
notificationIcon40?: string;
|
|
98
|
-
notificationIcon60?: string;
|
|
63
|
+
icons: {
|
|
64
|
+
hdpi?: string;
|
|
65
|
+
xhdpi?: string;
|
|
66
|
+
xxhdpi?: string;
|
|
67
|
+
xxxhdpi?: string;
|
|
68
|
+
};
|
|
69
|
+
splashscreen: {
|
|
70
|
+
hdpi?: string;
|
|
71
|
+
xhdpi?: string;
|
|
72
|
+
xxhdpi?: string;
|
|
73
|
+
};
|
|
74
|
+
enableVConsole: boolean;
|
|
75
|
+
officialPlugins?: {
|
|
76
|
+
imPush?: {
|
|
77
|
+
enable: boolean;
|
|
78
|
+
version?: string;
|
|
99
79
|
};
|
|
100
|
-
|
|
101
|
-
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
export interface IMiniIOSMiniappJson {
|
|
83
|
+
sdkVersion: string;
|
|
84
|
+
toolkitVersion: string;
|
|
85
|
+
useExtendedSdk: {
|
|
86
|
+
WeAppOpenFuns?: boolean;
|
|
87
|
+
WeAppNetwork?: boolean;
|
|
88
|
+
WeAppBluetooth?: boolean;
|
|
89
|
+
WeAppMedia?: boolean;
|
|
90
|
+
WeAppLBS?: boolean;
|
|
91
|
+
WeAppLive?: boolean;
|
|
92
|
+
WeAppOthers?: boolean;
|
|
93
|
+
};
|
|
94
|
+
enableVConsole: boolean;
|
|
95
|
+
icons: {
|
|
96
|
+
mainIcon120?: string;
|
|
97
|
+
mainIcon180?: string;
|
|
98
|
+
spotlightIcon80?: string;
|
|
99
|
+
spotlightIcon120?: string;
|
|
100
|
+
settingsIcon58?: string;
|
|
101
|
+
settingsIcon87?: string;
|
|
102
|
+
notificationIcon40?: string;
|
|
103
|
+
notificationIcon60?: string;
|
|
104
|
+
};
|
|
105
|
+
splashScreen?: {
|
|
106
|
+
customImage?: string;
|
|
107
|
+
};
|
|
108
|
+
tpush?: {
|
|
109
|
+
useExtendedLib_WeAppTPNS?: boolean;
|
|
110
|
+
accessKey: string;
|
|
111
|
+
accessID: number;
|
|
112
|
+
};
|
|
113
|
+
officialPlugins?: {
|
|
114
|
+
imPush?: {
|
|
115
|
+
enable: boolean;
|
|
116
|
+
version?: string;
|
|
117
|
+
businessID?: string;
|
|
118
|
+
TIMPushAppGroupId?: string;
|
|
119
|
+
enableNSE: boolean;
|
|
120
|
+
NSEBundleID?: string;
|
|
121
|
+
NSEProfilePath?: string;
|
|
122
|
+
NSEDistributetProfilePath?: string;
|
|
123
|
+
resourcePath?: string;
|
|
102
124
|
};
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
export interface IMiniPluginIOSItem {
|
|
128
|
+
open: boolean;
|
|
129
|
+
pluginId: string;
|
|
130
|
+
pluginVersion: string;
|
|
131
|
+
isFromLocal?: boolean;
|
|
132
|
+
loadWhenStart?: boolean;
|
|
133
|
+
resourcePath?: string;
|
|
134
|
+
resourceObjects?: {
|
|
135
|
+
[key: string]: string;
|
|
136
|
+
};
|
|
137
|
+
appexProfiles?: {
|
|
138
|
+
[key: string]: {
|
|
139
|
+
enable?: boolean;
|
|
140
|
+
bundleID?: string;
|
|
141
|
+
profilePath?: string;
|
|
142
|
+
distributeProfilePath?: string;
|
|
107
143
|
};
|
|
108
144
|
};
|
|
145
|
+
}
|
|
146
|
+
export interface IMiniPluginAndroidItem {
|
|
147
|
+
open: boolean;
|
|
148
|
+
pluginId: string;
|
|
149
|
+
pluginVersion: string;
|
|
150
|
+
}
|
|
151
|
+
export interface IMiniPluginMiniappJson {
|
|
152
|
+
android: IMiniPluginAndroidItem[];
|
|
153
|
+
ios: IMiniPluginIOSItem[];
|
|
154
|
+
}
|
|
155
|
+
export interface IAndroidMiniappJSON extends IMiniAndroidMiniappJson {
|
|
156
|
+
miniVersion: 'v2';
|
|
157
|
+
name: string;
|
|
109
158
|
sdkKey: string;
|
|
110
159
|
sdkKeySecret: string;
|
|
111
|
-
'mini-plugin':
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
profilePath?: string;
|
|
129
|
-
distributeProfilePath?: string;
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
}[];
|
|
133
|
-
};
|
|
160
|
+
'mini-plugin': IMiniPluginMiniappJson;
|
|
161
|
+
}
|
|
162
|
+
export interface IIOSMiniappJSON extends IMiniIOSMiniappJson {
|
|
163
|
+
miniVersion: 'v2';
|
|
164
|
+
name: string;
|
|
165
|
+
sdkKey: string;
|
|
166
|
+
sdkKeySecret: string;
|
|
167
|
+
'mini-plugin': IMiniPluginMiniappJson;
|
|
168
|
+
}
|
|
169
|
+
export interface INewMiniappJSON {
|
|
170
|
+
miniVersion: 'v2';
|
|
171
|
+
name: string;
|
|
172
|
+
'mini-android': IMiniAndroidMiniappJson;
|
|
173
|
+
'mini-ios': IMiniIOSMiniappJson;
|
|
174
|
+
sdkKey: string;
|
|
175
|
+
sdkKeySecret: string;
|
|
176
|
+
'mini-plugin': IMiniPluginMiniappJson;
|
|
134
177
|
}
|
|
135
178
|
export type IMiniappJSON = IOldMiniappJSON | INewMiniappJSON;
|
|
136
179
|
export declare function identityServiceConfigToMiniAppJSON(pagePath: string, appMiniappJSON?: IAppMiniappJSON): IAppMiniappJSON;
|
|
@@ -138,10 +181,10 @@ export declare function getRawMiniappJson(projectPath: string): any;
|
|
|
138
181
|
export declare function getMiniappJson(projectPath: string, targetPlatform?: string): any;
|
|
139
182
|
export declare function tryGetAndroidMiniappJson(projectPath: string): any;
|
|
140
183
|
export declare function tryGetIOSMiniappJson(projectPath: string): any;
|
|
141
|
-
export declare function tryGetPluginMiniappJson(projectPath: string):
|
|
142
|
-
export declare function
|
|
143
|
-
export declare function
|
|
144
|
-
export declare function
|
|
184
|
+
export declare function tryGetPluginMiniappJson(projectPath: string): IMiniPluginMiniappJson;
|
|
185
|
+
export declare function isMiniAppProjectWithProjectPath(projectpath: string): boolean;
|
|
186
|
+
export declare function isNewMiniAppProjectWithProjectPath(projectpath: string): boolean;
|
|
187
|
+
export declare function writeMiniAppJsonWithProjectPath(projectpath: string, values: types.PlainObj<any>): void;
|
|
145
188
|
export declare function iOSMiniAppJsonIsUsingTpush(iosMiniappJson: any): any;
|
|
146
189
|
export declare function iOSMiniAppJsonIsUsingGDT(iosMiniappJson: any): any;
|
|
147
190
|
export declare function iOSAppJsonIsUsingIPadResizable(projectPath: string): boolean;
|
|
@@ -151,4 +194,3 @@ export declare function getTargetMiniprogramArg(projectPath: string, targetArg:
|
|
|
151
194
|
export declare const iosPrivacyDescObj: Record<string, string>;
|
|
152
195
|
export declare function isAndroidNeedClientJsExtInfo(projectPath: string): 0 | 1;
|
|
153
196
|
export declare const autoCompleteIOSPrivacyDesc: (projectpath: string) => boolean;
|
|
154
|
-
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IMiniPluginMiniappJson, INewMiniappJSON } from './miniappJson';
|
|
2
|
+
export declare const IMPushPluginId = "wx369499c8a9c4c19e";
|
|
3
|
+
export declare function preprocessDonutPluginConfig(projectMiniappJson: IMiniPluginMiniappJson, rawJson: INewMiniappJSON): IMiniPluginMiniappJson;
|
|
@@ -6,12 +6,13 @@ declare class PackOptionsHelper {
|
|
|
6
6
|
private ignoreUploadUnusedFiles;
|
|
7
7
|
private ignoreDevUnusedFiles;
|
|
8
8
|
private unusedFiles;
|
|
9
|
+
private projectRoot;
|
|
9
10
|
private extOpts;
|
|
10
11
|
setExtOpts(options?: {
|
|
11
12
|
include?: MiniProgramDevtools.IProjectConfigPackOption[];
|
|
12
13
|
ignore?: MiniProgramDevtools.IProjectConfigPackOption[];
|
|
13
14
|
}): void;
|
|
14
|
-
updateState(project: MiniProgramCore.
|
|
15
|
+
updateState(project: MiniProgramCore.IProject): void;
|
|
15
16
|
isUnuserFilesEnable(production?: boolean): boolean;
|
|
16
17
|
filter(fileList: string[], production?: boolean): string[];
|
|
17
18
|
isIgnored(file: string, production?: boolean): any;
|
|
@@ -20,6 +21,7 @@ declare class PackOptionsHelper {
|
|
|
20
21
|
ignore?: MiniProgramDevtools.IProjectConfigPackOption[];
|
|
21
22
|
include?: MiniProgramDevtools.IProjectConfigPackOption[];
|
|
22
23
|
}): any;
|
|
24
|
+
relativePath(file: string): string;
|
|
23
25
|
isFileIgnored(file: string, ignores?: MiniProgramDevtools.IProjectConfigPackOption[]): any;
|
|
24
26
|
isFileIncluded(file: string, includes?: MiniProgramDevtools.IProjectConfigPackOption[]): any;
|
|
25
27
|
isIgnoreByUnusedFiles(file: string, production?: boolean): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MiniProgramCI } from '../types';
|
|
2
|
-
type ReportAction = 'preview' | 'upload' | 'npm' | 'cloud' | 'getDevSourceMap' | 'buildApk' | 'buildIpa';
|
|
2
|
+
type ReportAction = 'preview' | 'upload' | 'npm' | 'cloud' | 'getDevSourceMap' | 'buildApk' | 'buildIpa' | 'miniappCloudUpload';
|
|
3
3
|
export declare function reportAction(action: ReportAction, retcode: number, retmsg: string, spendtime: number, project: MiniProgramCI.IProject, setting?: MiniProgramCI.ICompileSettings): void;
|
|
4
4
|
export declare function wrapReport<T extends Function>(action: ReportAction, method: T): T;
|
|
5
5
|
export {};
|
|
@@ -38,6 +38,8 @@ export declare const compareVersion: (v1: any, v2: any) => 0 | 1 | -1;
|
|
|
38
38
|
export declare const pathRelative: (left: string, right: string) => string;
|
|
39
39
|
export declare function isLeftSubPathOfRight(child: string, parent: string): boolean;
|
|
40
40
|
export declare function isGameApp(project: MiniProgramCI.IProject): boolean;
|
|
41
|
+
export declare function isPluginType(project: MiniProgramCI.IProject): boolean;
|
|
42
|
+
export declare function isMiniappPlatform(targetPlatform?: string): boolean;
|
|
41
43
|
export declare const checkIsUseCompilerPlugins: () => boolean;
|
|
42
44
|
export declare const sourcePathToTargetPath: (sourcePath: string) => string;
|
|
43
45
|
export declare function getCompilerPlugins(project: MiniProgramCore.IPreCompileProject): ("typescript" | "less" | "sass")[];
|