@cloudbase/lowcode-builder 1.8.103 → 1.8.105
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/core/index.d.ts +3 -2
- package/lib/builder/core/index.js +14 -3
- package/lib/builder/h5/index.js +2 -2
- package/lib/builder/mp/index.js +1 -1
- package/lib/builder/mp/lowcode.js +1 -1
- package/lib/builder.web.js +3 -3
- package/lib/types.d.ts +2 -1
- package/lib/types.js +1 -0
- package/lib/utils/postProcess.d.ts +4 -1
- package/package.json +3 -3
- package/template/mp/app/weapps-api.js +1 -0
- package/template/mp/datasources/config.js.tpl +1 -1
- package/template/mp/package.json +1 -1
package/lib/types.d.ts
CHANGED
package/lib/types.js
CHANGED
|
@@ -19,6 +19,7 @@ var DEPLOY_MODE;
|
|
|
19
19
|
(function (DEPLOY_MODE) {
|
|
20
20
|
DEPLOY_MODE["PREVIEW"] = "preview";
|
|
21
21
|
DEPLOY_MODE["UPLOAD"] = "upload";
|
|
22
|
+
DEPLOY_MODE["DYNAMIC"] = "dynamic";
|
|
22
23
|
})(DEPLOY_MODE = exports.DEPLOY_MODE || (exports.DEPLOY_MODE = {}));
|
|
23
24
|
var RUNTIME;
|
|
24
25
|
(function (RUNTIME) {
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
export declare function postprocessProjectConfig(projectJsonPath: any, data: any): void;
|
|
2
|
-
export declare function postprocessDeployExtraJson(projectPath: any, deployOptions:
|
|
2
|
+
export declare function postprocessDeployExtraJson(projectPath: any, deployOptions: {
|
|
3
|
+
targetMpAppId?: string;
|
|
4
|
+
mpAppId?: string;
|
|
5
|
+
}): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/lowcode-builder",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.105",
|
|
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",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@babel/core": "7.21.4",
|
|
49
49
|
"@babel/preset-env": "7.21.4",
|
|
50
|
-
"@cloudbase/cals": "^1.1.
|
|
51
|
-
"@cloudbase/lowcode-generator": "^1.8.
|
|
50
|
+
"@cloudbase/cals": "^1.1.4",
|
|
51
|
+
"@cloudbase/lowcode-generator": "^1.8.33",
|
|
52
52
|
"axios": "^0.21.0",
|
|
53
53
|
"browserfs": "^1.4.3",
|
|
54
54
|
"browserify-zlib": "^0.2.0",
|
|
@@ -7,7 +7,7 @@ import config from '../common/config'
|
|
|
7
7
|
*/
|
|
8
8
|
const CLOUD_CONFIG = {
|
|
9
9
|
/** 当前是否处于正式发布模式 */
|
|
10
|
-
isProd: <%= isProd
|
|
10
|
+
isProd: <%= deployMode === 'dynamic' ? 'wx.getAccountInfoSync()?.miniProgram?.envVersion === "release" || wx.getAccountInfoSync()?.miniProgram?.envVersion === "trial"': isProd %>,
|
|
11
11
|
/** 低码应用ID */
|
|
12
12
|
appID: '<%= appID %>',
|
|
13
13
|
/** 云开发环境ID */
|
package/template/mp/package.json
CHANGED