@cloudbase/cli 2.0.11 → 2.0.12-alpha.2
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/.history/.gitignore_20220624162613 +84 -0
- package/.history/.gitignore_20220627114054 +86 -0
- package/.history/package_20220711204706.json +88 -0
- package/.history/package_20220711204818.json +88 -0
- package/.history/package_20220712151717.json +88 -0
- package/.history/package_20220712212537.json +88 -0
- package/.history/src/commands/lowcode/app_20220624162613.ts +34 -0
- package/.history/src/commands/lowcode/app_20220627114205.ts +52 -0
- package/.history/src/index_20220624162613.ts +13 -0
- package/.history/src/index_20220627113609.ts +15 -0
- package/.history/src/index_20220627114102.ts +13 -0
- package/.vscode/launch.json +10 -0
- package/bin/cloudbase.js +0 -0
- package/bin/tcb.js +0 -0
- package/lib/commands/lowcode/app.js +30 -2
- package/package.json +2 -2
- package/src/commands/lowcode/app.ts +19 -1
- package/types/commands/lowcode/app.d.ts +10 -0
- package/yarn-error.log +12841 -0
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.LowCodeWatch = void 0;
|
|
24
|
+
exports.DanielWatch = exports.LowCodeWatch = void 0;
|
|
25
25
|
const common_1 = require("../common");
|
|
26
26
|
const lowcode_cli_1 = require("@cloudbase/lowcode-cli");
|
|
27
27
|
const decorators_1 = require("../../decorators");
|
|
@@ -48,7 +48,7 @@ let LowCodeWatch = class LowCodeWatch extends common_1.Command {
|
|
|
48
48
|
return __awaiter(this, void 0, void 0, function* () {
|
|
49
49
|
yield (0, lowcode_cli_1.watchApp)({
|
|
50
50
|
watchPort: 8288,
|
|
51
|
-
wxDevtoolPath: options === null || options === void 0 ? void 0 : options.wxDevtoolPath
|
|
51
|
+
wxDevtoolPath: options === null || options === void 0 ? void 0 : options.wxDevtoolPath
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
54
|
}
|
|
@@ -65,3 +65,31 @@ LowCodeWatch = __decorate([
|
|
|
65
65
|
(0, common_1.ICommand)()
|
|
66
66
|
], LowCodeWatch);
|
|
67
67
|
exports.LowCodeWatch = LowCodeWatch;
|
|
68
|
+
let DanielWatch = class DanielWatch extends common_1.Command {
|
|
69
|
+
get options() {
|
|
70
|
+
return {
|
|
71
|
+
cmd: 'lowcode',
|
|
72
|
+
childCmd: 'watch-ws',
|
|
73
|
+
options: [],
|
|
74
|
+
desc: '开启云开发低码的本地开发模式',
|
|
75
|
+
requiredEnvId: false
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
execute(ctx, options) {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
console.log('>>> 启动啦');
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, decorators_1.InjectParams)(),
|
|
86
|
+
__param(0, (0, decorators_1.CmdContext)()),
|
|
87
|
+
__param(1, (0, decorators_1.ArgsOptions)()),
|
|
88
|
+
__metadata("design:type", Function),
|
|
89
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
90
|
+
__metadata("design:returntype", Promise)
|
|
91
|
+
], DanielWatch.prototype, "execute", null);
|
|
92
|
+
DanielWatch = __decorate([
|
|
93
|
+
(0, common_1.ICommand)()
|
|
94
|
+
], DanielWatch);
|
|
95
|
+
exports.DanielWatch = DanielWatch;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.12-alpha.2",
|
|
4
4
|
"description": "cli tool for cloudbase",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@cloudbase/cloud-api": "^0.5.5",
|
|
33
33
|
"@cloudbase/framework-core": "^1.6.1",
|
|
34
|
-
"@cloudbase/lowcode-cli": "
|
|
34
|
+
"@cloudbase/lowcode-cli": "0.14.5-alpha.2",
|
|
35
35
|
"@cloudbase/manager-node": "4.0.1",
|
|
36
36
|
"@cloudbase/toolbox": "^0.7.3",
|
|
37
37
|
"@sentry/node": "^5.10.2",
|
|
@@ -28,7 +28,25 @@ export class LowCodeWatch extends Command {
|
|
|
28
28
|
async execute(@CmdContext() ctx, @ArgsOptions() options) {
|
|
29
29
|
await watchApp({
|
|
30
30
|
watchPort: 8288,
|
|
31
|
-
wxDevtoolPath: options?.wxDevtoolPath
|
|
31
|
+
wxDevtoolPath: options?.wxDevtoolPath
|
|
32
32
|
})
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
+
|
|
36
|
+
@ICommand()
|
|
37
|
+
export class DanielWatch extends Command {
|
|
38
|
+
get options() {
|
|
39
|
+
return {
|
|
40
|
+
cmd: 'lowcode',
|
|
41
|
+
childCmd: 'watch-ws',
|
|
42
|
+
options: [],
|
|
43
|
+
desc: '开启云开发低码的本地开发模式',
|
|
44
|
+
requiredEnvId: false
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@InjectParams()
|
|
49
|
+
async execute(@CmdContext() ctx, @ArgsOptions() options) {
|
|
50
|
+
console.log('>>> 启动啦')
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -12,3 +12,13 @@ export declare class LowCodeWatch extends Command {
|
|
|
12
12
|
};
|
|
13
13
|
execute(ctx: any, options: any): Promise<void>;
|
|
14
14
|
}
|
|
15
|
+
export declare class DanielWatch extends Command {
|
|
16
|
+
get options(): {
|
|
17
|
+
cmd: string;
|
|
18
|
+
childCmd: string;
|
|
19
|
+
options: any[];
|
|
20
|
+
desc: string;
|
|
21
|
+
requiredEnvId: boolean;
|
|
22
|
+
};
|
|
23
|
+
execute(ctx: any, options: any): Promise<void>;
|
|
24
|
+
}
|