@cloudbase/framework-plugin-low-code 1.1.1-beta.0 → 1.1.1

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.
Files changed (2) hide show
  1. package/lib/mpPlugin.js +26 -3
  2. package/package.json +2 -2
package/lib/mpPlugin.js CHANGED
@@ -1,4 +1,27 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
26
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
27
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -19,7 +42,7 @@ const url_1 = __importDefault(require("url"));
19
42
  const child_process_1 = require("child_process");
20
43
  const util_1 = require("util");
21
44
  const framework_core_1 = require("@cloudbase/framework-core");
22
- const lowcode_deployer_1 = require("@cloudbase/lowcode-deployer");
45
+ const lowcode_deployer_1 = __importStar(require("@cloudbase/lowcode-deployer"));
23
46
  const SUPPORT_DEPLOY_MODE = ['upload', 'preview'];
24
47
  const MP_CONFIG_FILENAME = 'project.config.json';
25
48
  class MiniProgramsPlugin extends framework_core_1.Plugin {
@@ -66,10 +89,10 @@ class MiniProgramsPlugin extends framework_core_1.Plugin {
66
89
  if (!fs_1.default.existsSync(path_1.default.resolve(projectPath, localPath, MP_CONFIG_FILENAME))) {
67
90
  throw new Error('项目内找不到小程序配置文件 project.config.json,请在 cloudbaserc.json 中指明小程序应用的项目路径 localPath.');
68
91
  }
69
- this.deployer = new lowcode_deployer_1.deployer({
92
+ this.deployer = new lowcode_deployer_1.default({
70
93
  logger: this.api.logger,
71
94
  type: 'MP',
72
- mode: ((_a = this.resolvedInputs) === null || _a === void 0 ? void 0 : _a.deployMode) === 'upload' ? 'PRODUCTION' : 'PREIVEW',
95
+ mode: ((_a = this.resolvedInputs) === null || _a === void 0 ? void 0 : _a.deployMode) === 'upload' ? lowcode_deployer_1.EDeployMode.PRODUCTION : lowcode_deployer_1.EDeployMode.PREVIEW,
73
96
  projectPath: path_1.default.resolve(projectPath, localPath),
74
97
  ignores: this.resolvedInputs.ignores,
75
98
  mpAppId: appid,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/framework-plugin-low-code",
3
- "version": "1.1.1-beta.0",
3
+ "version": "1.1.1",
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",
@@ -42,7 +42,7 @@
42
42
  "@cloudbase/framework-plugin-auth": "^1.8.16",
43
43
  "@cloudbase/framework-plugin-mp": "1.9.5-beta.0",
44
44
  "@cloudbase/framework-plugin-website": "^1.8.17",
45
- "@cloudbase/lowcode-builder": "^1.1.0",
45
+ "@cloudbase/lowcode-builder": "^1.1.4",
46
46
  "@formily/react-schema-renderer": "1.1.7",
47
47
  "archiver": "^4.0.1",
48
48
  "compressing": "^1.4.0",