@cloudbase/lowcode-builder 1.8.80 → 1.8.82
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.
|
@@ -60,7 +60,7 @@ export declare function buildWedaConfig({ output, domain, isPrivateMode, endpoin
|
|
|
60
60
|
endpointType?: IBuildWedaApp['endpointType'];
|
|
61
61
|
buildTypeList?: IBuildWedaApp['buildTypeList'];
|
|
62
62
|
}): Promise<void>;
|
|
63
|
-
export declare function buildWedaApp({ cals, subAppCalsList, dependencies, appKey, runtime, ignoreInstall, buildTypeList, mode, devTool, deployOptions, generateMpType, plugins, extraData, resourceAppId, domain, output, isBrowserMpBuilder, cdnEndpoints, isPrivateMode, endpointType, enableExpiredTag, enableAd, account, mpConfig, }: IBuildWedaApp, cb?: WebpackBuildCallBack): Promise<any>;
|
|
63
|
+
export declare function buildWedaApp({ cals, subAppCalsList: _subAppCalsList, dependencies, appKey, runtime, ignoreInstall, buildTypeList, mode, devTool, deployOptions, generateMpType, plugins, extraData, resourceAppId, domain, output, isBrowserMpBuilder, cdnEndpoints, isPrivateMode, endpointType, enableExpiredTag, enableAd, account, mpConfig, }: IBuildWedaApp, cb?: WebpackBuildCallBack): Promise<any>;
|
|
64
64
|
export declare function cleanComponentDir(): Promise<void>;
|
|
65
65
|
export declare const version: any;
|
|
66
66
|
export { getFiles, fileToZip, strToBuf } from '../util/generateFiles';
|
|
@@ -56,118 +56,10 @@ async function buildWedaConfig({ output, domain = undefined, isPrivateMode = und
|
|
|
56
56
|
await (0, index_1.generateConfig)(data, outDir);
|
|
57
57
|
}
|
|
58
58
|
exports.buildWedaConfig = buildWedaConfig;
|
|
59
|
-
async function buildWedaApp({ cals, subAppCalsList = [], dependencies = [], appKey = 'test', runtime = types_1.RUNTIME.NONE, ignoreInstall = false, buildTypeList = [common_1.BuildType.WEB], mode = common_1.WebpackModeType.PRODUCTION, devTool = 'webpack', deployOptions = { mode: types_1.DEPLOY_MODE.PREVIEW }, generateMpType = common_1.GenerateMpType.APP, plugins = [], extraData = {
|
|
59
|
+
async function buildWedaApp({ cals, subAppCalsList: _subAppCalsList = [], dependencies = [], appKey = 'test', runtime = types_1.RUNTIME.NONE, ignoreInstall = false, buildTypeList = [common_1.BuildType.WEB], mode = common_1.WebpackModeType.PRODUCTION, devTool = 'webpack', deployOptions = { mode: types_1.DEPLOY_MODE.PREVIEW }, generateMpType = common_1.GenerateMpType.APP, plugins = [], extraData = {
|
|
60
60
|
isComposite: false,
|
|
61
61
|
compProps: {},
|
|
62
|
-
}, resourceAppId = undefined, domain = '', output, isBrowserMpBuilder = false, cdnEndpoints, isPrivateMode = false, endpointType = undefined, enableExpiredTag = false, enableAd = false, account = {}, mpConfig = {
|
|
63
|
-
projectConfigJson: {
|
|
64
|
-
wedaRoot: '$weda_root',
|
|
65
|
-
miniprogramRoot: 'miniprogram/',
|
|
66
|
-
cloudfunctionRoot: 'cloudfunctions/',
|
|
67
|
-
setting: {
|
|
68
|
-
urlCheck: true,
|
|
69
|
-
es6: true,
|
|
70
|
-
enhance: true,
|
|
71
|
-
postcss: true,
|
|
72
|
-
preloadBackgroundData: false,
|
|
73
|
-
minified: true,
|
|
74
|
-
newFeature: true,
|
|
75
|
-
coverView: true,
|
|
76
|
-
nodeModules: false,
|
|
77
|
-
autoAudits: false,
|
|
78
|
-
showShadowRootInWxmlPanel: true,
|
|
79
|
-
scopeDataCheck: false,
|
|
80
|
-
uglifyFileName: false,
|
|
81
|
-
checkInvalidKey: true,
|
|
82
|
-
checkSiteMap: true,
|
|
83
|
-
uploadWithSourceMap: true,
|
|
84
|
-
compileHotReLoad: false,
|
|
85
|
-
useMultiFrameRuntime: true,
|
|
86
|
-
useApiHook: true,
|
|
87
|
-
useApiHostProcess: true,
|
|
88
|
-
babelSetting: {
|
|
89
|
-
ignore: [],
|
|
90
|
-
disablePlugins: [],
|
|
91
|
-
outputPath: '',
|
|
92
|
-
},
|
|
93
|
-
enableEngineNative: false,
|
|
94
|
-
useIsolateContext: true,
|
|
95
|
-
useCompilerModule: true,
|
|
96
|
-
userConfirmedUseCompilerModuleSwitch: false,
|
|
97
|
-
userConfirmedBundleSwitch: false,
|
|
98
|
-
packNpmManually: false,
|
|
99
|
-
packNpmRelationList: [
|
|
100
|
-
{
|
|
101
|
-
packageJsonPath: 'miniprogram/$weda_root/package.json',
|
|
102
|
-
miniprogramNpmDistDir: '232miniprogram/$weda_root',
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
packageJsonPath: 'miniprogram/$weda_root/packages/$wd_system/package.json',
|
|
106
|
-
miniprogramNpmDistDir: '2323miniprogram/$weda_root/packages/$wd_system',
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
packageJsonPath: '111$weda_root/package.json',
|
|
110
|
-
miniprogramNpmDistDir: '$weda_root',
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
packageJsonPath: '/$weda_root/packages/$wd_system/package.json',
|
|
114
|
-
miniprogramNpmDistDir: '$weda_root/packages/$wd_system',
|
|
115
|
-
},
|
|
116
|
-
],
|
|
117
|
-
minifyWXSS: true,
|
|
118
|
-
},
|
|
119
|
-
appid: 'wxcf5102ada68a7ac9',
|
|
120
|
-
projectname: 'quickstart-wx-cloud',
|
|
121
|
-
libVersion: '2.20.1',
|
|
122
|
-
cloudfunctionTemplateRoot: 'cloudfunctionTemplate/',
|
|
123
|
-
condition: {
|
|
124
|
-
search: {
|
|
125
|
-
list: [],
|
|
126
|
-
},
|
|
127
|
-
conversation: {
|
|
128
|
-
list: [],
|
|
129
|
-
},
|
|
130
|
-
plugin: {
|
|
131
|
-
list: [],
|
|
132
|
-
},
|
|
133
|
-
game: {
|
|
134
|
-
list: [],
|
|
135
|
-
},
|
|
136
|
-
miniprogram: {
|
|
137
|
-
list: [
|
|
138
|
-
{
|
|
139
|
-
id: -1,
|
|
140
|
-
name: 'db guide',
|
|
141
|
-
pathName: 'pages/databaseGuide/databaseGuide',
|
|
142
|
-
},
|
|
143
|
-
],
|
|
144
|
-
},
|
|
145
|
-
},
|
|
146
|
-
compileType: 'miniprogram',
|
|
147
|
-
srcMiniprogramRoot: 'miniprogram/',
|
|
148
|
-
packOptions: {
|
|
149
|
-
ignore: [],
|
|
150
|
-
include: [],
|
|
151
|
-
},
|
|
152
|
-
editorSetting: {
|
|
153
|
-
tabIndent: 'auto',
|
|
154
|
-
tabSize: 2,
|
|
155
|
-
},
|
|
156
|
-
},
|
|
157
|
-
appJson: {
|
|
158
|
-
pages: [],
|
|
159
|
-
window: {
|
|
160
|
-
backgroundColor: '#F6F6F6',
|
|
161
|
-
backgroundTextStyle: 'light',
|
|
162
|
-
navigationBarBackgroundColor: '#F6F6F6',
|
|
163
|
-
navigationBarTitleText: '云开发 QuickStart',
|
|
164
|
-
navigationBarTextStyle: 'black',
|
|
165
|
-
},
|
|
166
|
-
sitemapLocation: 'sitemap.json',
|
|
167
|
-
style: 'v2',
|
|
168
|
-
lazyCodeLoading: 'requiredComponents',
|
|
169
|
-
},
|
|
170
|
-
}, }, cb) {
|
|
62
|
+
}, resourceAppId = undefined, domain = '', output, isBrowserMpBuilder = false, cdnEndpoints, isPrivateMode = false, endpointType = undefined, enableExpiredTag = false, enableAd = false, account = {}, mpConfig = {}, }, cb) {
|
|
171
63
|
var _a, _b, _c, _d, _e, _f;
|
|
172
64
|
if (!cals) {
|
|
173
65
|
console.error('无效的应用配置');
|
|
@@ -176,6 +68,11 @@ async function buildWedaApp({ cals, subAppCalsList = [], dependencies = [], appK
|
|
|
176
68
|
if (!deployOptions.mode) {
|
|
177
69
|
deployOptions.mode = types_1.DEPLOY_MODE.PREVIEW;
|
|
178
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* 正规化子包数据
|
|
73
|
+
* 清除冗余字段
|
|
74
|
+
*/
|
|
75
|
+
const subAppCalsList = _subAppCalsList.map((cals) => (0, cals_1.streamlineSubApp)(cals));
|
|
179
76
|
/**
|
|
180
77
|
* 刷新正规化 packageName
|
|
181
78
|
*/
|