@cloudbase/cli 2.3.9 → 2.3.11
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.
|
@@ -55,7 +55,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
55
55
|
return t;
|
|
56
56
|
};
|
|
57
57
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58
|
-
exports.LowCodeDeployApp = exports.LowCodeBuildApp = exports.LowCodeWatch = void 0;
|
|
58
|
+
exports.LowCodeDeployApp = exports.LowCodePreviewApp = exports.LowCodeBuildApp = exports.LowCodeWatch = void 0;
|
|
59
59
|
const common_1 = require("../common");
|
|
60
60
|
const decorators_1 = require("../../decorators");
|
|
61
61
|
const utils_1 = require("./utils");
|
|
@@ -165,6 +165,51 @@ LowCodeBuildApp = __decorate([
|
|
|
165
165
|
(0, common_1.ICommand)({ supportPrivate: true })
|
|
166
166
|
], LowCodeBuildApp);
|
|
167
167
|
exports.LowCodeBuildApp = LowCodeBuildApp;
|
|
168
|
+
let LowCodePreviewApp = class LowCodePreviewApp extends common_1.Command {
|
|
169
|
+
get options() {
|
|
170
|
+
return {
|
|
171
|
+
cmd: 'lowcode',
|
|
172
|
+
childCmd: 'preview:app',
|
|
173
|
+
options: [
|
|
174
|
+
{
|
|
175
|
+
flags: '--wx-devtool-path <your-wx-dev-tool-path>',
|
|
176
|
+
desc: '指定微信开发者工具的安装路径'
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
flags: '--platform <mp|web>',
|
|
180
|
+
desc: '构建平台'
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
desc: '预览应用',
|
|
184
|
+
requiredEnvId: false
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
execute(ctx, log, options) {
|
|
188
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
+
const config = (0, utils_1.getCmdConfig)(ctx.config, this.options);
|
|
190
|
+
const mergesOptions = (0, utils_1.getMergedOptions)(config, options);
|
|
191
|
+
yield lowcodeCli.previewApp({
|
|
192
|
+
envId: ctx.envId || ctx.config.envId,
|
|
193
|
+
projectPath: process.cwd(),
|
|
194
|
+
logger: log,
|
|
195
|
+
privateSettings: (0, utils_2.getPrivateSettings)(ctx.config, this.options.cmd)
|
|
196
|
+
}, mergesOptions);
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
__decorate([
|
|
201
|
+
(0, decorators_1.InjectParams)(),
|
|
202
|
+
__param(0, (0, decorators_1.CmdContext)()),
|
|
203
|
+
__param(1, (0, decorators_1.Log)()),
|
|
204
|
+
__param(2, (0, decorators_1.ArgsOptions)()),
|
|
205
|
+
__metadata("design:type", Function),
|
|
206
|
+
__metadata("design:paramtypes", [Object, decorators_1.Logger, Object]),
|
|
207
|
+
__metadata("design:returntype", Promise)
|
|
208
|
+
], LowCodePreviewApp.prototype, "execute", null);
|
|
209
|
+
LowCodePreviewApp = __decorate([
|
|
210
|
+
(0, common_1.ICommand)({ supportPrivate: true })
|
|
211
|
+
], LowCodePreviewApp);
|
|
212
|
+
exports.LowCodePreviewApp = LowCodePreviewApp;
|
|
168
213
|
let LowCodeDeployApp = class LowCodeDeployApp extends common_1.Command {
|
|
169
214
|
get options() {
|
|
170
215
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/cli",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.11",
|
|
4
4
|
"description": "cli tool for cloudbase",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"tsc": "tsc",
|
|
13
13
|
"pkg": "pkg ./bin/cloudbase.js --out-path ./pkg",
|
|
14
14
|
"postinstall": "node ./post-install.js || exit 0",
|
|
15
|
-
"prepublishOnly": "npm run build"
|
|
15
|
+
"prepublishOnly": "npm run build",
|
|
16
|
+
"debug": "bin/tcb.js lowcode watch"
|
|
16
17
|
},
|
|
17
18
|
"repository": {
|
|
18
19
|
"type": "git",
|
|
@@ -31,8 +32,8 @@
|
|
|
31
32
|
"license": "ISC",
|
|
32
33
|
"dependencies": {
|
|
33
34
|
"@cloudbase/cloud-api": "^0.5.5",
|
|
34
|
-
"@cloudbase/framework-core": "^1.9.
|
|
35
|
-
"@cloudbase/lowcode-cli": "^0.20.
|
|
35
|
+
"@cloudbase/framework-core": "^1.9.7",
|
|
36
|
+
"@cloudbase/lowcode-cli": "^0.20.5",
|
|
36
37
|
"@cloudbase/manager-node": "4.2.8",
|
|
37
38
|
"@cloudbase/toolbox": "^0.7.5",
|
|
38
39
|
"@sentry/node": "^5.10.2",
|
|
@@ -27,6 +27,19 @@ export declare class LowCodeBuildApp extends Command {
|
|
|
27
27
|
};
|
|
28
28
|
execute(ctx: ICommandContext, log: Logger, options: any): Promise<void>;
|
|
29
29
|
}
|
|
30
|
+
export declare class LowCodePreviewApp extends Command {
|
|
31
|
+
get options(): {
|
|
32
|
+
cmd: string;
|
|
33
|
+
childCmd: string;
|
|
34
|
+
options: {
|
|
35
|
+
flags: string;
|
|
36
|
+
desc: string;
|
|
37
|
+
}[];
|
|
38
|
+
desc: string;
|
|
39
|
+
requiredEnvId: boolean;
|
|
40
|
+
};
|
|
41
|
+
execute(ctx: ICommandContext, log: Logger, options: any): Promise<void>;
|
|
42
|
+
}
|
|
30
43
|
export declare class LowCodeDeployApp extends Command {
|
|
31
44
|
get options(): {
|
|
32
45
|
cmd: string;
|