@cloudbase/lowcode-builder 1.0.36 → 1.0.38
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/lib/builder/h5/index.js
CHANGED
|
@@ -50,7 +50,7 @@ async function buildH5App({ appKey, buildDir, dependencies, i18nConfig, extraDat
|
|
|
50
50
|
}
|
|
51
51
|
const subAppDataList = subAppSerializeDataList.map((sub) => (0, weapps_core_1.deserialize)(sub));
|
|
52
52
|
// 前置操作
|
|
53
|
-
const { publicPath, basename, assets = '' } = ((_b = mainAppData.appConfig) === null || _b === void 0 ? void 0 : _b.window) || {};
|
|
53
|
+
const { publicPath, basename, assets = '', _indexPage } = ((_b = mainAppData.appConfig) === null || _b === void 0 ? void 0 : _b.window) || {};
|
|
54
54
|
// 获取 插入的cdn 资源
|
|
55
55
|
const jsAssets = await (0, generate_1.handleAssets)({
|
|
56
56
|
appBuildDir: buildDir,
|
|
@@ -87,6 +87,7 @@ async function buildH5App({ appKey, buildDir, dependencies, i18nConfig, extraDat
|
|
|
87
87
|
isSandbox: false,
|
|
88
88
|
runtime,
|
|
89
89
|
deployMode,
|
|
90
|
+
_indexPage,
|
|
90
91
|
});
|
|
91
92
|
console.timeEnd(runGenerateTag);
|
|
92
93
|
// // 构建 NPM 包
|
|
@@ -21,7 +21,7 @@ async function writeCode2file(mod, lowcodeRootDir, opts = {}, themeCode, ctx) {
|
|
|
21
21
|
const relativeRoot = (ctx === null || ctx === void 0 ? void 0 : ctx.isMixMode) && ctx.rootPath ? `${path_1.default.relative(ctx.rootPath, '')}/` : '';
|
|
22
22
|
let weappsApiPrefix = [
|
|
23
23
|
`import { app, process } from '${relativeRoot}${baseDir}/app/weapps-api';`,
|
|
24
|
-
'const $app = new Proxy({}, { get: function(obj, prop){ return app[prop] }})',
|
|
24
|
+
'const $app = new Proxy({}, { get: function(obj, prop){ return app[prop] }});',
|
|
25
25
|
]; // windows compatibility
|
|
26
26
|
if (pageId !== 'global') {
|
|
27
27
|
weappsApiPrefix.push(`import { $page } from '${baseDir}/pages/${pageId}/api'`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/lowcode-builder",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.38",
|
|
4
4
|
"description": "云开发 Tencent CloudBase Framework Low Code Plugin,将低码配置生成完整项目并一键部署云开发资源。",
|
|
5
5
|
"author": "yhsunshining@gmail.com",
|
|
6
6
|
"homepage": "https://github.com/TencentCloudBase/cloudbase-framework#readme",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@cloudbase/cals": "^0.4.9",
|
|
42
|
-
"@cloudbase/lowcode-generator": "^1.0.
|
|
42
|
+
"@cloudbase/lowcode-generator": "^1.0.17",
|
|
43
43
|
"axios": "^0.21.0",
|
|
44
44
|
"browserfs": "^1.4.3",
|
|
45
45
|
"browserify-zlib": "^0.2.0",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<meta http-equiv="X-UA-Compatible" content="IE=9" />
|
|
6
|
-
<meta name="renderer" content="webkit
|
|
6
|
+
<meta name="renderer" content="webkit" />
|
|
7
7
|
<meta
|
|
8
8
|
name="viewport"
|
|
9
9
|
content="width=device-width,initial-scale=1.0,user-scalable=no<% if(!isBuildApp) {%>,viewport-fit=cover<%}%>"
|
|
@@ -461,7 +461,7 @@
|
|
|
461
461
|
></script>
|
|
462
462
|
<script
|
|
463
463
|
crossorigin
|
|
464
|
-
src="https://qbase.cdn-go.cn/lcap/lcap-resource-cdngo/-/0.1.4/_files/static/weda-render/main.
|
|
464
|
+
src="https://qbase.cdn-go.cn/lcap/lcap-resource-cdngo/-/0.1.4/_files/static/weda-render/main.8a81937eced4c70f449b.bundle.js"
|
|
465
465
|
></script>
|
|
466
466
|
</body>
|
|
467
467
|
</html>
|
package/template/mp/package.json
CHANGED