@cloudbase/lowcode-builder 1.0.22 → 1.0.25
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/dist/builder.web.js +79 -0
- package/lib/builder/config/index.d.ts +1 -1
- package/lib/builder/config/index.js +1 -1
- package/lib/builder/core/index.js +20 -21
- package/lib/builder/mp/index.js +1 -1
- package/lib/builder/mp/util.js +2 -1
- package/lib/builder.web.js +21 -13
- package/package.json +4 -4
- package/template/html/index.html.ejs +1 -1
|
@@ -6,7 +6,7 @@ export declare const materialsDirName = "materials";
|
|
|
6
6
|
* src/template的代码,在IDE编辑器插件中构建builder
|
|
7
7
|
* 存放在大账号:100015939275。访问地址:https://console.cloud.tencent.com/cos/bucket?bucket=comp-public-1303824488®ion=ap-shanghai&path=%252Flcap-builder%252F
|
|
8
8
|
*/
|
|
9
|
-
export declare const builderTemplateURL = "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/lcap-builder/
|
|
9
|
+
export declare const builderTemplateURL = "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/lcap-builder/template_20220810.zip";
|
|
10
10
|
/**
|
|
11
11
|
* miniprogram的代码,IDE插件后续会提供端功能
|
|
12
12
|
* 存放在大账号:100015939275。访问地址:https://console.cloud.tencent.com/cos/bucket?bucket=comp-public-1303824488®ion=ap-shanghai&path=%252Flcap-builder%252F
|
|
@@ -44,7 +44,7 @@ exports.materialsDirName = 'materials'; // materials diretory of current project
|
|
|
44
44
|
* src/template的代码,在IDE编辑器插件中构建builder
|
|
45
45
|
* 存放在大账号:100015939275。访问地址:https://console.cloud.tencent.com/cos/bucket?bucket=comp-public-1303824488®ion=ap-shanghai&path=%252Flcap-builder%252F
|
|
46
46
|
*/
|
|
47
|
-
exports.builderTemplateURL = 'https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/lcap-builder/
|
|
47
|
+
exports.builderTemplateURL = 'https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/lcap-builder/template_20220810.zip';
|
|
48
48
|
/**
|
|
49
49
|
* miniprogram的代码,IDE插件后续会提供端功能
|
|
50
50
|
* 存放在大账号:100015939275。访问地址:https://console.cloud.tencent.com/cos/bucket?bucket=comp-public-1303824488®ion=ap-shanghai&path=%252Flcap-builder%252F
|
|
@@ -12,7 +12,6 @@ const common_1 = require("../types/common");
|
|
|
12
12
|
const index_1 = require("../mp/index");
|
|
13
13
|
const types_1 = require("../../types");
|
|
14
14
|
const mixMode_1 = require("../mp/mixMode");
|
|
15
|
-
const index_2 = require("../h5/index");
|
|
16
15
|
const common_2 = require("../../utils/common");
|
|
17
16
|
const postProcess_1 = require("../../utils/postProcess");
|
|
18
17
|
const net_1 = require("../util/net");
|
|
@@ -94,26 +93,26 @@ async function buildWedaApp({ cals, subAppCalsList = [], dependencies = [], appK
|
|
|
94
93
|
return outDir;
|
|
95
94
|
}
|
|
96
95
|
else {
|
|
97
|
-
const h5BuildDir = await
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
});
|
|
116
|
-
return h5BuildDir;
|
|
96
|
+
// const h5BuildDir = await buildH5App({
|
|
97
|
+
// appKey,
|
|
98
|
+
// buildDir: appBuildDir,
|
|
99
|
+
// dependencies,
|
|
100
|
+
// cals,
|
|
101
|
+
// subAppCalsList,
|
|
102
|
+
// extraData,
|
|
103
|
+
// buildTypeList,
|
|
104
|
+
// mode,
|
|
105
|
+
// devTool,
|
|
106
|
+
// runtime,
|
|
107
|
+
// deployMode,
|
|
108
|
+
// ignoreInstall,
|
|
109
|
+
// domain,
|
|
110
|
+
// });
|
|
111
|
+
// cb?.(null, {
|
|
112
|
+
// outDir: h5BuildDir,
|
|
113
|
+
// timeElapsed: Date.now() - startTime,
|
|
114
|
+
// });
|
|
115
|
+
// return h5BuildDir;
|
|
117
116
|
}
|
|
118
117
|
}
|
|
119
118
|
catch (e) {
|
package/lib/builder/mp/index.js
CHANGED
|
@@ -338,7 +338,7 @@ async function generatePkg(weapp, appRoot, ctx, pageConfigs) {
|
|
|
338
338
|
subWxss: rootPath && !((_b = ctx.mainAppData) === null || _b === void 0 ? void 0 : _b.mpPkgUrl)
|
|
339
339
|
? `@import "${path_1.default.relative(`/${rootPath}/pages/${page.id}`, '/lowcode')}/style.wxss";`
|
|
340
340
|
: '',
|
|
341
|
-
content: (0, weapps_core_1.toCssText)((0,
|
|
341
|
+
content: (0, weapps_core_1.toCssText)((0, cals_1.processCommonStyle2CSSProperties)(page.commonStyle, {
|
|
342
342
|
toRem: false,
|
|
343
343
|
toRpx: true,
|
|
344
344
|
}), 'page'),
|
package/lib/builder/mp/util.js
CHANGED
|
@@ -5,11 +5,12 @@ const weapps_core_1 = require("@cloudbase/lowcode-generator/lib/weapps-core");
|
|
|
5
5
|
const weapp_1 = require("@cloudbase/lowcode-generator/lib/generator/util/weapp");
|
|
6
6
|
const wxml_1 = require("./wxml");
|
|
7
7
|
const mp_1 = require("@cloudbase/lowcode-generator/lib/generator/config/mp");
|
|
8
|
+
const cals_1 = require("@cloudbase/cals");
|
|
8
9
|
function extractWidgetProps(props, compInfo) {
|
|
9
10
|
var _a, _b;
|
|
10
11
|
const { classList } = props;
|
|
11
12
|
const staticProps = {
|
|
12
|
-
style: (0,
|
|
13
|
+
style: (0, cals_1.processCommonStyle2CSSProperties)(props.commonStyle, {
|
|
13
14
|
toRpx: true,
|
|
14
15
|
toRem: false,
|
|
15
16
|
}),
|