@cloudbase/cli 2.1.1 → 2.1.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/lib/commands/lowcode/comps.js +3 -49
- package/package.json +2 -2
- package/.history/.gitignore_20220624162613 +0 -84
- package/.history/.gitignore_20220627114054 +0 -86
- package/.history/package_20220711204706.json +0 -88
- package/.history/package_20220711204818.json +0 -88
- package/.history/package_20220712151717.json +0 -88
- package/.history/package_20220712212537.json +0 -88
- package/.history/package_20220722205058.json +0 -88
- package/.history/package_20220726110155.json +0 -88
- package/.history/package_20220726110201.json +0 -88
- package/.history/package_20220728110905.json +0 -88
- package/.history/package_20220728110936.json +0 -88
- package/.history/package_20220728111531.json +0 -89
- package/.history/package_20220728111810.json +0 -89
- package/.history/package_20220729165237.json +0 -89
- package/.history/package_20220729165240.json +0 -89
- package/.history/package_20220802111854.json +0 -89
- package/.history/package_20220802112025.json +0 -89
- package/.history/src/commands/lowcode/app_20220728111717.ts +0 -52
- package/.history/src/commands/lowcode/app_20220728112031.ts +0 -34
- package/.history/src/commands/lowcode/app_20220729172854.ts +0 -34
- package/.history/src/index_20220624162613.ts +0 -13
- package/.history/src/index_20220627113609.ts +0 -15
- package/.history/src/index_20220627114102.ts +0 -13
|
@@ -43,22 +43,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
43
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
47
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
48
|
-
};
|
|
49
46
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
47
|
exports.LowCodePublishVersionComps = exports.LowCodePublishComps = exports.LowCodeDebugComps = exports.LowCodeBuildComps = exports.LowCodeCreateComps = void 0;
|
|
51
|
-
const path_1 = __importDefault(require("path"));
|
|
52
48
|
const common_1 = require("../common");
|
|
53
49
|
const decorators_1 = require("../../decorators");
|
|
54
50
|
const utils_1 = require("../../utils");
|
|
55
51
|
const error_1 = require("../../error");
|
|
56
52
|
const lowcode_cli_1 = require("@cloudbase/lowcode-cli");
|
|
57
53
|
const enquirer_1 = require("enquirer");
|
|
58
|
-
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
59
54
|
const semver = __importStar(require("semver"));
|
|
60
55
|
const cloudService = utils_1.CloudApiService.getInstance('lowcode');
|
|
61
|
-
const DEFAULE_TEMPLATE_PATH = 'https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/lcc/template.zip';
|
|
62
56
|
let LowCodeCreateComps = class LowCodeCreateComps extends common_1.Command {
|
|
63
57
|
get options() {
|
|
64
58
|
return {
|
|
@@ -138,8 +132,7 @@ let LowCodeBuildComps = class LowCodeBuildComps extends common_1.Command {
|
|
|
138
132
|
yield (0, lowcode_cli_1.graceBuildComps)(Object.assign(Object.assign({}, config), { context: config.context || process.cwd(), logger: log }));
|
|
139
133
|
return;
|
|
140
134
|
}
|
|
141
|
-
|
|
142
|
-
yield _build(compsPath);
|
|
135
|
+
throw new error_1.CloudBaseError('请参考文档填写 cloudbaserc 配置: https://docs.cloudbase.net/lowcode/custom-components/config/config-comps');
|
|
143
136
|
});
|
|
144
137
|
}
|
|
145
138
|
};
|
|
@@ -185,8 +178,7 @@ let LowCodeDebugComps = class LowCodeDebugComps extends common_1.Command {
|
|
|
185
178
|
yield (0, lowcode_cli_1.graceDebugComps)(Object.assign(Object.assign({}, config), { context: config.context || process.cwd(), debugPort: (options === null || options === void 0 ? void 0 : options.debugPort) || 8388, logger: log, wxDevtoolPath: options === null || options === void 0 ? void 0 : options.wxDevtoolPath }));
|
|
186
179
|
return;
|
|
187
180
|
}
|
|
188
|
-
|
|
189
|
-
yield (0, lowcode_cli_1.debug)(compsPath, (options === null || options === void 0 ? void 0 : options.debugPort) || 8388);
|
|
181
|
+
throw new error_1.CloudBaseError('请参考文档填写 cloudbaserc 配置: https://docs.cloudbase.net/lowcode/custom-components/config/config-comps');
|
|
190
182
|
});
|
|
191
183
|
}
|
|
192
184
|
};
|
|
@@ -231,25 +223,7 @@ let LowCodePublishComps = class LowCodePublishComps extends common_1.Command {
|
|
|
231
223
|
log.success('组件库 - 已同步到云端,请到低码控制台发布该组件库!');
|
|
232
224
|
return;
|
|
233
225
|
}
|
|
234
|
-
|
|
235
|
-
const compsName = fs_extra_1.default.readJSONSync(path_1.default.resolve(compsPath, 'package.json')).name;
|
|
236
|
-
const res = yield cloudService.request('ListUserCompositeGroups');
|
|
237
|
-
const comps = res === null || res === void 0 ? void 0 : res.data;
|
|
238
|
-
if (!(comps === null || comps === void 0 ? void 0 : comps.count)) {
|
|
239
|
-
throw new error_1.CloudBaseError(`云端不存在组件库 ${compsName},请到低码控制台新建该组件库!`);
|
|
240
|
-
}
|
|
241
|
-
const comp = comps.rows.find((row) => row.groupName === compsName);
|
|
242
|
-
if (!comp) {
|
|
243
|
-
throw new error_1.CloudBaseError(`云端不存在组件库 ${compsName},请到低码控制台新建该组件库!`);
|
|
244
|
-
}
|
|
245
|
-
yield _build(compsPath);
|
|
246
|
-
yield _publish({
|
|
247
|
-
id: comp.id,
|
|
248
|
-
name: compsName,
|
|
249
|
-
path: compsPath,
|
|
250
|
-
log,
|
|
251
|
-
});
|
|
252
|
-
log.info('\n👉 组件库已经同步到云端,请到低码控制台发布该组件库!');
|
|
226
|
+
throw new error_1.CloudBaseError('请参考文档填写 cloudbaserc 配置: https://docs.cloudbase.net/lowcode/custom-components/config/config-comps');
|
|
253
227
|
});
|
|
254
228
|
}
|
|
255
229
|
};
|
|
@@ -351,23 +325,3 @@ LowCodePublishVersionComps = __decorate([
|
|
|
351
325
|
(0, common_1.ICommand)()
|
|
352
326
|
], LowCodePublishVersionComps);
|
|
353
327
|
exports.LowCodePublishVersionComps = LowCodePublishVersionComps;
|
|
354
|
-
function _build(compsPath) {
|
|
355
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
356
|
-
yield (0, utils_1.execWithLoading)(() => __awaiter(this, void 0, void 0, function* () {
|
|
357
|
-
yield (0, lowcode_cli_1.build)(compsPath);
|
|
358
|
-
}), {
|
|
359
|
-
startTip: '组件库 - 构建中',
|
|
360
|
-
successTip: '组件库 - 构建成功'
|
|
361
|
-
});
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
|
-
function _publish(info) {
|
|
365
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
366
|
-
yield (0, utils_1.execWithLoading)(() => __awaiter(this, void 0, void 0, function* () {
|
|
367
|
-
yield (0, lowcode_cli_1.publishComps)(info);
|
|
368
|
-
}), {
|
|
369
|
-
startTip: '组件库 - 发布中',
|
|
370
|
-
successTip: '组件库 - 发布成功'
|
|
371
|
-
});
|
|
372
|
-
});
|
|
373
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/cli",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "cli tool for cloudbase",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@cloudbase/cloud-api": "^0.5.5",
|
|
34
34
|
"@cloudbase/framework-core": "^1.6.1",
|
|
35
|
-
"@cloudbase/lowcode-cli": "^0.
|
|
35
|
+
"@cloudbase/lowcode-cli": "^0.16.0",
|
|
36
36
|
"@cloudbase/manager-node": "4.0.1",
|
|
37
37
|
"@cloudbase/toolbox": "^0.7.3",
|
|
38
38
|
"@sentry/node": "^5.10.2",
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
# Logs
|
|
2
|
-
logs
|
|
3
|
-
*.log
|
|
4
|
-
npm-debug.log*
|
|
5
|
-
yarn-debug.log*
|
|
6
|
-
yarn-error.log*
|
|
7
|
-
package-lock.json
|
|
8
|
-
yarn.lock
|
|
9
|
-
|
|
10
|
-
# Runtime data
|
|
11
|
-
pids
|
|
12
|
-
*.pid
|
|
13
|
-
*.seed
|
|
14
|
-
*.pid.lock
|
|
15
|
-
|
|
16
|
-
# Directory for instrumented libs generated by jscoverage/JSCover
|
|
17
|
-
lib-cov
|
|
18
|
-
|
|
19
|
-
# Coverage directory used by tools like istanbul
|
|
20
|
-
coverage
|
|
21
|
-
|
|
22
|
-
# nyc test coverage
|
|
23
|
-
.nyc_output
|
|
24
|
-
|
|
25
|
-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
|
26
|
-
.grunt
|
|
27
|
-
|
|
28
|
-
# Bower dependency directory (https://bower.io/)
|
|
29
|
-
bower_components
|
|
30
|
-
|
|
31
|
-
# node-waf configuration
|
|
32
|
-
.lock-wscript
|
|
33
|
-
|
|
34
|
-
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
|
35
|
-
build/Release
|
|
36
|
-
|
|
37
|
-
# Dependency directories
|
|
38
|
-
node_modules/
|
|
39
|
-
jspm_packages/
|
|
40
|
-
|
|
41
|
-
# TypeScript v1 declaration files
|
|
42
|
-
typings/
|
|
43
|
-
|
|
44
|
-
# Optional npm cache directory
|
|
45
|
-
.npm
|
|
46
|
-
|
|
47
|
-
# Optional eslint cache
|
|
48
|
-
.eslintcache
|
|
49
|
-
|
|
50
|
-
# Optional REPL history
|
|
51
|
-
.node_repl_history
|
|
52
|
-
|
|
53
|
-
# Output of 'npm pack'
|
|
54
|
-
*.tgz
|
|
55
|
-
|
|
56
|
-
# Yarn Integrity file
|
|
57
|
-
.yarn-integrity
|
|
58
|
-
|
|
59
|
-
# dotenv environment variables file
|
|
60
|
-
.env
|
|
61
|
-
|
|
62
|
-
# next.js build output
|
|
63
|
-
.next
|
|
64
|
-
|
|
65
|
-
dist
|
|
66
|
-
|
|
67
|
-
example/**/tcb.json
|
|
68
|
-
|
|
69
|
-
node_modules
|
|
70
|
-
|
|
71
|
-
.idea
|
|
72
|
-
.vscode/*
|
|
73
|
-
!.vscode/launch.json
|
|
74
|
-
|
|
75
|
-
# Test api Key
|
|
76
|
-
test/api-key.js
|
|
77
|
-
|
|
78
|
-
pkg/
|
|
79
|
-
|
|
80
|
-
.DS_Store
|
|
81
|
-
|
|
82
|
-
# Build files
|
|
83
|
-
/lib
|
|
84
|
-
/types
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
# Logs
|
|
2
|
-
logs
|
|
3
|
-
*.log
|
|
4
|
-
npm-debug.log*
|
|
5
|
-
yarn-debug.log*
|
|
6
|
-
yarn-error.log*
|
|
7
|
-
package-lock.json
|
|
8
|
-
yarn.lock
|
|
9
|
-
|
|
10
|
-
# Runtime data
|
|
11
|
-
pids
|
|
12
|
-
*.pid
|
|
13
|
-
*.seed
|
|
14
|
-
*.pid.lock
|
|
15
|
-
|
|
16
|
-
# Directory for instrumented libs generated by jscoverage/JSCover
|
|
17
|
-
lib-cov
|
|
18
|
-
|
|
19
|
-
# Coverage directory used by tools like istanbul
|
|
20
|
-
coverage
|
|
21
|
-
|
|
22
|
-
# nyc test coverage
|
|
23
|
-
.nyc_output
|
|
24
|
-
|
|
25
|
-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
|
26
|
-
.grunt
|
|
27
|
-
|
|
28
|
-
# Bower dependency directory (https://bower.io/)
|
|
29
|
-
bower_components
|
|
30
|
-
|
|
31
|
-
# node-waf configuration
|
|
32
|
-
.lock-wscript
|
|
33
|
-
|
|
34
|
-
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
|
35
|
-
build/Release
|
|
36
|
-
|
|
37
|
-
# Dependency directories
|
|
38
|
-
node_modules/
|
|
39
|
-
jspm_packages/
|
|
40
|
-
|
|
41
|
-
# TypeScript v1 declaration files
|
|
42
|
-
typings/
|
|
43
|
-
|
|
44
|
-
# Optional npm cache directory
|
|
45
|
-
.npm
|
|
46
|
-
|
|
47
|
-
# Optional eslint cache
|
|
48
|
-
.eslintcache
|
|
49
|
-
|
|
50
|
-
# Optional REPL history
|
|
51
|
-
.node_repl_history
|
|
52
|
-
|
|
53
|
-
# Output of 'npm pack'
|
|
54
|
-
*.tgz
|
|
55
|
-
|
|
56
|
-
# Yarn Integrity file
|
|
57
|
-
.yarn-integrity
|
|
58
|
-
|
|
59
|
-
# dotenv environment variables file
|
|
60
|
-
.env
|
|
61
|
-
|
|
62
|
-
# next.js build output
|
|
63
|
-
.next
|
|
64
|
-
|
|
65
|
-
dist
|
|
66
|
-
|
|
67
|
-
example/**/tcb.json
|
|
68
|
-
|
|
69
|
-
node_modules
|
|
70
|
-
|
|
71
|
-
.idea
|
|
72
|
-
.vscode/*
|
|
73
|
-
!.vscode/launch.json
|
|
74
|
-
|
|
75
|
-
# Test api Key
|
|
76
|
-
test/api-key.js
|
|
77
|
-
|
|
78
|
-
pkg/
|
|
79
|
-
|
|
80
|
-
.DS_Store
|
|
81
|
-
|
|
82
|
-
# Build files
|
|
83
|
-
/lib
|
|
84
|
-
/types
|
|
85
|
-
|
|
86
|
-
.history
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@cloudbase/cli",
|
|
3
|
-
"version": "2.0.11",
|
|
4
|
-
"description": "cli tool for cloudbase",
|
|
5
|
-
"main": "lib/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "rimraf lib types && tsc",
|
|
8
|
-
"watch": "rimraf lib types && tsc -w",
|
|
9
|
-
"dev": "rimraf lib types && tsc -w",
|
|
10
|
-
"eslint": "eslint \"./**/*.ts\"",
|
|
11
|
-
"test": "jest --runInBand --forceExit --detectOpenHandles --coverage --verbose --testTimeout=10000",
|
|
12
|
-
"tsc": "tsc",
|
|
13
|
-
"pkg": "pkg ./bin/cloudbase.js --out-path ./pkg",
|
|
14
|
-
"postinstall": "node ./post-install.js || exit 0"
|
|
15
|
-
},
|
|
16
|
-
"repository": {
|
|
17
|
-
"type": "git",
|
|
18
|
-
"url": "https://github.com/TencentCloudBase/cloud-base-cli.git"
|
|
19
|
-
},
|
|
20
|
-
"bin": {
|
|
21
|
-
"tcb": "bin/tcb.js",
|
|
22
|
-
"cloudbase": "bin/cloudbase.js"
|
|
23
|
-
},
|
|
24
|
-
"husky": {
|
|
25
|
-
"hooks": {
|
|
26
|
-
"pre-commit": "npm run build && git add ."
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"author": "cwuyiqing@gmail.com",
|
|
30
|
-
"license": "ISC",
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"@cloudbase/cloud-api": "^0.5.5",
|
|
33
|
-
"@cloudbase/framework-core": "^1.6.1",
|
|
34
|
-
"@cloudbase/lowcode-cli": "^0.14.3",
|
|
35
|
-
"@cloudbase/manager-node": "4.0.1",
|
|
36
|
-
"@cloudbase/toolbox": "^0.7.3",
|
|
37
|
-
"@sentry/node": "^5.10.2",
|
|
38
|
-
"address": "^1.1.2",
|
|
39
|
-
"chalk": "^2.4.2",
|
|
40
|
-
"cli-table3": "^0.5.1",
|
|
41
|
-
"commander": "7",
|
|
42
|
-
"del": "^5.1.0",
|
|
43
|
-
"didyoumean": "^1.2.2",
|
|
44
|
-
"enquirer": "^2.3.6",
|
|
45
|
-
"execa": "^4.0.3",
|
|
46
|
-
"fs-extra": "^8.1.0",
|
|
47
|
-
"https-proxy-agent": "^5.0.1",
|
|
48
|
-
"inquirer": "^6.5.0",
|
|
49
|
-
"lodash": "^4.17.21",
|
|
50
|
-
"log-symbols": "^3.0.0",
|
|
51
|
-
"lowdb": "^1.0.0",
|
|
52
|
-
"make-dir": "^3.0.0",
|
|
53
|
-
"node-fetch": "^2.6.0",
|
|
54
|
-
"open": "^7.0.0",
|
|
55
|
-
"ora": "^4.0.2",
|
|
56
|
-
"portfinder": "^1.0.28",
|
|
57
|
-
"progress": "^2.0.3",
|
|
58
|
-
"query-string": "^6.8.1",
|
|
59
|
-
"reflect-metadata": "^0.1.13",
|
|
60
|
-
"semver": "^7.3.7",
|
|
61
|
-
"tar-fs": "^2.0.1",
|
|
62
|
-
"terminal-link": "^2.1.1",
|
|
63
|
-
"unzipper": "^0.10.10",
|
|
64
|
-
"update-notifier": "^4.0.0",
|
|
65
|
-
"xdg-basedir": "^4.0.0",
|
|
66
|
-
"yargs": "^16.2.0",
|
|
67
|
-
"yargs-parser": "^21.0.1"
|
|
68
|
-
},
|
|
69
|
-
"devDependencies": {
|
|
70
|
-
"@types/jest": "^27",
|
|
71
|
-
"@types/koa__router": "^8.0.11",
|
|
72
|
-
"@types/lodash": "^4.14.182",
|
|
73
|
-
"@types/node": "^12.12.38",
|
|
74
|
-
"@types/node-fetch": "^2.5.4",
|
|
75
|
-
"@types/react": "^17.0.37",
|
|
76
|
-
"@types/semver": "^7.3.9",
|
|
77
|
-
"@types/webpack-dev-server": "^3.11.1",
|
|
78
|
-
"@typescript-eslint/eslint-plugin": "^4.8.1",
|
|
79
|
-
"@typescript-eslint/parser": "^4.8.1",
|
|
80
|
-
"eslint": "^7.14.0",
|
|
81
|
-
"eslint-config-alloy": "^3.8.2",
|
|
82
|
-
"husky": "^3.0.9",
|
|
83
|
-
"jest": "^27",
|
|
84
|
-
"rimraf": "^3.0.2",
|
|
85
|
-
"ts-jest": "^27",
|
|
86
|
-
"typescript": "^4.7.2"
|
|
87
|
-
}
|
|
88
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@cloudbase/cli",
|
|
3
|
-
"version": "2.0.11",
|
|
4
|
-
"description": "cli tool for cloudbase",
|
|
5
|
-
"main": "lib/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "rimraf lib types && tsc",
|
|
8
|
-
"watch": "rimraf lib types && tsc -w",
|
|
9
|
-
"dev": "rimraf lib types && tsc -w",
|
|
10
|
-
"eslint": "eslint \"./**/*.ts\"",
|
|
11
|
-
"test": "jest --runInBand --forceExit --detectOpenHandles --coverage --verbose --testTimeout=10000",
|
|
12
|
-
"tsc": "tsc",
|
|
13
|
-
"pkg": "pkg ./bin/cloudbase.js --out-path ./pkg",
|
|
14
|
-
"postinstall": "node ./post-install.js || exit 0"
|
|
15
|
-
},
|
|
16
|
-
"repository": {
|
|
17
|
-
"type": "git",
|
|
18
|
-
"url": "https://github.com/TencentCloudBase/cloud-base-cli.git"
|
|
19
|
-
},
|
|
20
|
-
"bin": {
|
|
21
|
-
"tcb": "bin/tcb.js",
|
|
22
|
-
"cloudbase": "bin/cloudbase.js"
|
|
23
|
-
},
|
|
24
|
-
"husky": {
|
|
25
|
-
"hooks": {
|
|
26
|
-
"pre-commit": "npm run build && git add ."
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"author": "cwuyiqing@gmail.com",
|
|
30
|
-
"license": "ISC",
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"@cloudbase/cloud-api": "^0.5.5",
|
|
33
|
-
"@cloudbase/framework-core": "^1.6.1",
|
|
34
|
-
"@cloudbase/lowcode-cli": "0.14.5-alpha.0",
|
|
35
|
-
"@cloudbase/manager-node": "4.0.1",
|
|
36
|
-
"@cloudbase/toolbox": "^0.7.3",
|
|
37
|
-
"@sentry/node": "^5.10.2",
|
|
38
|
-
"address": "^1.1.2",
|
|
39
|
-
"chalk": "^2.4.2",
|
|
40
|
-
"cli-table3": "^0.5.1",
|
|
41
|
-
"commander": "7",
|
|
42
|
-
"del": "^5.1.0",
|
|
43
|
-
"didyoumean": "^1.2.2",
|
|
44
|
-
"enquirer": "^2.3.6",
|
|
45
|
-
"execa": "^4.0.3",
|
|
46
|
-
"fs-extra": "^8.1.0",
|
|
47
|
-
"https-proxy-agent": "^5.0.1",
|
|
48
|
-
"inquirer": "^6.5.0",
|
|
49
|
-
"lodash": "^4.17.21",
|
|
50
|
-
"log-symbols": "^3.0.0",
|
|
51
|
-
"lowdb": "^1.0.0",
|
|
52
|
-
"make-dir": "^3.0.0",
|
|
53
|
-
"node-fetch": "^2.6.0",
|
|
54
|
-
"open": "^7.0.0",
|
|
55
|
-
"ora": "^4.0.2",
|
|
56
|
-
"portfinder": "^1.0.28",
|
|
57
|
-
"progress": "^2.0.3",
|
|
58
|
-
"query-string": "^6.8.1",
|
|
59
|
-
"reflect-metadata": "^0.1.13",
|
|
60
|
-
"semver": "^7.3.7",
|
|
61
|
-
"tar-fs": "^2.0.1",
|
|
62
|
-
"terminal-link": "^2.1.1",
|
|
63
|
-
"unzipper": "^0.10.10",
|
|
64
|
-
"update-notifier": "^4.0.0",
|
|
65
|
-
"xdg-basedir": "^4.0.0",
|
|
66
|
-
"yargs": "^16.2.0",
|
|
67
|
-
"yargs-parser": "^21.0.1"
|
|
68
|
-
},
|
|
69
|
-
"devDependencies": {
|
|
70
|
-
"@types/jest": "^27",
|
|
71
|
-
"@types/koa__router": "^8.0.11",
|
|
72
|
-
"@types/lodash": "^4.14.182",
|
|
73
|
-
"@types/node": "^12.12.38",
|
|
74
|
-
"@types/node-fetch": "^2.5.4",
|
|
75
|
-
"@types/react": "^17.0.37",
|
|
76
|
-
"@types/semver": "^7.3.9",
|
|
77
|
-
"@types/webpack-dev-server": "^3.11.1",
|
|
78
|
-
"@typescript-eslint/eslint-plugin": "^4.8.1",
|
|
79
|
-
"@typescript-eslint/parser": "^4.8.1",
|
|
80
|
-
"eslint": "^7.14.0",
|
|
81
|
-
"eslint-config-alloy": "^3.8.2",
|
|
82
|
-
"husky": "^3.0.9",
|
|
83
|
-
"jest": "^27",
|
|
84
|
-
"rimraf": "^3.0.2",
|
|
85
|
-
"ts-jest": "^27",
|
|
86
|
-
"typescript": "^4.7.2"
|
|
87
|
-
}
|
|
88
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@cloudbase/cli",
|
|
3
|
-
"version": "2.0.12-alpha.0",
|
|
4
|
-
"description": "cli tool for cloudbase",
|
|
5
|
-
"main": "lib/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "rimraf lib types && tsc",
|
|
8
|
-
"watch": "rimraf lib types && tsc -w",
|
|
9
|
-
"dev": "rimraf lib types && tsc -w",
|
|
10
|
-
"eslint": "eslint \"./**/*.ts\"",
|
|
11
|
-
"test": "jest --runInBand --forceExit --detectOpenHandles --coverage --verbose --testTimeout=10000",
|
|
12
|
-
"tsc": "tsc",
|
|
13
|
-
"pkg": "pkg ./bin/cloudbase.js --out-path ./pkg",
|
|
14
|
-
"postinstall": "node ./post-install.js || exit 0"
|
|
15
|
-
},
|
|
16
|
-
"repository": {
|
|
17
|
-
"type": "git",
|
|
18
|
-
"url": "https://github.com/TencentCloudBase/cloud-base-cli.git"
|
|
19
|
-
},
|
|
20
|
-
"bin": {
|
|
21
|
-
"tcb": "bin/tcb.js",
|
|
22
|
-
"cloudbase": "bin/cloudbase.js"
|
|
23
|
-
},
|
|
24
|
-
"husky": {
|
|
25
|
-
"hooks": {
|
|
26
|
-
"pre-commit": "npm run build && git add ."
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"author": "cwuyiqing@gmail.com",
|
|
30
|
-
"license": "ISC",
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"@cloudbase/cloud-api": "^0.5.5",
|
|
33
|
-
"@cloudbase/framework-core": "^1.6.1",
|
|
34
|
-
"@cloudbase/lowcode-cli": "0.14.5-alpha.1",
|
|
35
|
-
"@cloudbase/manager-node": "4.0.1",
|
|
36
|
-
"@cloudbase/toolbox": "^0.7.3",
|
|
37
|
-
"@sentry/node": "^5.10.2",
|
|
38
|
-
"address": "^1.1.2",
|
|
39
|
-
"chalk": "^2.4.2",
|
|
40
|
-
"cli-table3": "^0.5.1",
|
|
41
|
-
"commander": "7",
|
|
42
|
-
"del": "^5.1.0",
|
|
43
|
-
"didyoumean": "^1.2.2",
|
|
44
|
-
"enquirer": "^2.3.6",
|
|
45
|
-
"execa": "^4.0.3",
|
|
46
|
-
"fs-extra": "^8.1.0",
|
|
47
|
-
"https-proxy-agent": "^5.0.1",
|
|
48
|
-
"inquirer": "^6.5.0",
|
|
49
|
-
"lodash": "^4.17.21",
|
|
50
|
-
"log-symbols": "^3.0.0",
|
|
51
|
-
"lowdb": "^1.0.0",
|
|
52
|
-
"make-dir": "^3.0.0",
|
|
53
|
-
"node-fetch": "^2.6.0",
|
|
54
|
-
"open": "^7.0.0",
|
|
55
|
-
"ora": "^4.0.2",
|
|
56
|
-
"portfinder": "^1.0.28",
|
|
57
|
-
"progress": "^2.0.3",
|
|
58
|
-
"query-string": "^6.8.1",
|
|
59
|
-
"reflect-metadata": "^0.1.13",
|
|
60
|
-
"semver": "^7.3.7",
|
|
61
|
-
"tar-fs": "^2.0.1",
|
|
62
|
-
"terminal-link": "^2.1.1",
|
|
63
|
-
"unzipper": "^0.10.10",
|
|
64
|
-
"update-notifier": "^4.0.0",
|
|
65
|
-
"xdg-basedir": "^4.0.0",
|
|
66
|
-
"yargs": "^16.2.0",
|
|
67
|
-
"yargs-parser": "^21.0.1"
|
|
68
|
-
},
|
|
69
|
-
"devDependencies": {
|
|
70
|
-
"@types/jest": "^27",
|
|
71
|
-
"@types/koa__router": "^8.0.11",
|
|
72
|
-
"@types/lodash": "^4.14.182",
|
|
73
|
-
"@types/node": "^12.12.38",
|
|
74
|
-
"@types/node-fetch": "^2.5.4",
|
|
75
|
-
"@types/react": "^17.0.37",
|
|
76
|
-
"@types/semver": "^7.3.9",
|
|
77
|
-
"@types/webpack-dev-server": "^3.11.1",
|
|
78
|
-
"@typescript-eslint/eslint-plugin": "^4.8.1",
|
|
79
|
-
"@typescript-eslint/parser": "^4.8.1",
|
|
80
|
-
"eslint": "^7.14.0",
|
|
81
|
-
"eslint-config-alloy": "^3.8.2",
|
|
82
|
-
"husky": "^3.0.9",
|
|
83
|
-
"jest": "^27",
|
|
84
|
-
"rimraf": "^3.0.2",
|
|
85
|
-
"ts-jest": "^27",
|
|
86
|
-
"typescript": "^4.7.2"
|
|
87
|
-
}
|
|
88
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@cloudbase/cli",
|
|
3
|
-
"version": "2.0.12-alpha.1",
|
|
4
|
-
"description": "cli tool for cloudbase",
|
|
5
|
-
"main": "lib/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "rimraf lib types && tsc",
|
|
8
|
-
"watch": "rimraf lib types && tsc -w",
|
|
9
|
-
"dev": "rimraf lib types && tsc -w",
|
|
10
|
-
"eslint": "eslint \"./**/*.ts\"",
|
|
11
|
-
"test": "jest --runInBand --forceExit --detectOpenHandles --coverage --verbose --testTimeout=10000",
|
|
12
|
-
"tsc": "tsc",
|
|
13
|
-
"pkg": "pkg ./bin/cloudbase.js --out-path ./pkg",
|
|
14
|
-
"postinstall": "node ./post-install.js || exit 0"
|
|
15
|
-
},
|
|
16
|
-
"repository": {
|
|
17
|
-
"type": "git",
|
|
18
|
-
"url": "https://github.com/TencentCloudBase/cloud-base-cli.git"
|
|
19
|
-
},
|
|
20
|
-
"bin": {
|
|
21
|
-
"tcb": "bin/tcb.js",
|
|
22
|
-
"cloudbase": "bin/cloudbase.js"
|
|
23
|
-
},
|
|
24
|
-
"husky": {
|
|
25
|
-
"hooks": {
|
|
26
|
-
"pre-commit": "npm run build && git add ."
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"author": "cwuyiqing@gmail.com",
|
|
30
|
-
"license": "ISC",
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"@cloudbase/cloud-api": "^0.5.5",
|
|
33
|
-
"@cloudbase/framework-core": "^1.6.1",
|
|
34
|
-
"@cloudbase/lowcode-cli": "0.14.5-alpha.2",
|
|
35
|
-
"@cloudbase/manager-node": "4.0.1",
|
|
36
|
-
"@cloudbase/toolbox": "^0.7.3",
|
|
37
|
-
"@sentry/node": "^5.10.2",
|
|
38
|
-
"address": "^1.1.2",
|
|
39
|
-
"chalk": "^2.4.2",
|
|
40
|
-
"cli-table3": "^0.5.1",
|
|
41
|
-
"commander": "7",
|
|
42
|
-
"del": "^5.1.0",
|
|
43
|
-
"didyoumean": "^1.2.2",
|
|
44
|
-
"enquirer": "^2.3.6",
|
|
45
|
-
"execa": "^4.0.3",
|
|
46
|
-
"fs-extra": "^8.1.0",
|
|
47
|
-
"https-proxy-agent": "^5.0.1",
|
|
48
|
-
"inquirer": "^6.5.0",
|
|
49
|
-
"lodash": "^4.17.21",
|
|
50
|
-
"log-symbols": "^3.0.0",
|
|
51
|
-
"lowdb": "^1.0.0",
|
|
52
|
-
"make-dir": "^3.0.0",
|
|
53
|
-
"node-fetch": "^2.6.0",
|
|
54
|
-
"open": "^7.0.0",
|
|
55
|
-
"ora": "^4.0.2",
|
|
56
|
-
"portfinder": "^1.0.28",
|
|
57
|
-
"progress": "^2.0.3",
|
|
58
|
-
"query-string": "^6.8.1",
|
|
59
|
-
"reflect-metadata": "^0.1.13",
|
|
60
|
-
"semver": "^7.3.7",
|
|
61
|
-
"tar-fs": "^2.0.1",
|
|
62
|
-
"terminal-link": "^2.1.1",
|
|
63
|
-
"unzipper": "^0.10.10",
|
|
64
|
-
"update-notifier": "^4.0.0",
|
|
65
|
-
"xdg-basedir": "^4.0.0",
|
|
66
|
-
"yargs": "^16.2.0",
|
|
67
|
-
"yargs-parser": "^21.0.1"
|
|
68
|
-
},
|
|
69
|
-
"devDependencies": {
|
|
70
|
-
"@types/jest": "^27",
|
|
71
|
-
"@types/koa__router": "^8.0.11",
|
|
72
|
-
"@types/lodash": "^4.14.182",
|
|
73
|
-
"@types/node": "^12.12.38",
|
|
74
|
-
"@types/node-fetch": "^2.5.4",
|
|
75
|
-
"@types/react": "^17.0.37",
|
|
76
|
-
"@types/semver": "^7.3.9",
|
|
77
|
-
"@types/webpack-dev-server": "^3.11.1",
|
|
78
|
-
"@typescript-eslint/eslint-plugin": "^4.8.1",
|
|
79
|
-
"@typescript-eslint/parser": "^4.8.1",
|
|
80
|
-
"eslint": "^7.14.0",
|
|
81
|
-
"eslint-config-alloy": "^3.8.2",
|
|
82
|
-
"husky": "^3.0.9",
|
|
83
|
-
"jest": "^27",
|
|
84
|
-
"rimraf": "^3.0.2",
|
|
85
|
-
"ts-jest": "^27",
|
|
86
|
-
"typescript": "^4.7.2"
|
|
87
|
-
}
|
|
88
|
-
}
|