@cloudbase/cli 2.2.0 → 2.2.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_20221215165051.json +89 -0
- package/.history/package_20221215165124.json +89 -0
- package/.history/package_20221221164921.json +89 -0
- package/.history/package_20221221165014.json +89 -0
- package/.history/package_20221229213044.json +89 -0
- package/.history/package_20221229213215.json +89 -0
- package/.history/package_20221229213328.json +89 -0
- package/.history/src/commands/lowcode/app_20220728111717.ts +52 -0
- package/.history/src/commands/lowcode/app_20220728112031.ts +34 -0
- package/.history/src/commands/lowcode/app_20220729172854.ts +34 -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/lib/commands/lowcode/comps.js +7 -2
- package/package.json +2 -2
- package/.vscode/settings.json +0 -6
|
@@ -0,0 +1,84 @@
|
|
|
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
|
|
@@ -0,0 +1,86 @@
|
|
|
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
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cloudbase/cli",
|
|
3
|
+
"version": "2.1.12",
|
|
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
|
+
"prepublishOnly": "npm run build"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/TencentCloudBase/cloud-base-cli.git"
|
|
20
|
+
},
|
|
21
|
+
"bin": {
|
|
22
|
+
"tcb": "bin/tcb.js",
|
|
23
|
+
"cloudbase": "bin/cloudbase.js"
|
|
24
|
+
},
|
|
25
|
+
"husky": {
|
|
26
|
+
"hooks": {
|
|
27
|
+
"pre-commit": "npm run build"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"author": "cwuyiqing@gmail.com",
|
|
31
|
+
"license": "ISC",
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@cloudbase/cloud-api": "^0.5.5",
|
|
34
|
+
"@cloudbase/framework-core": "^1.9.6",
|
|
35
|
+
"@cloudbase/lowcode-cli": "^0.17.2",
|
|
36
|
+
"@cloudbase/manager-node": "4.0.1",
|
|
37
|
+
"@cloudbase/toolbox": "^0.7.4",
|
|
38
|
+
"@sentry/node": "^5.10.2",
|
|
39
|
+
"address": "^1.1.2",
|
|
40
|
+
"chalk": "^2.4.2",
|
|
41
|
+
"cli-table3": "^0.5.1",
|
|
42
|
+
"commander": "7",
|
|
43
|
+
"del": "^5.1.0",
|
|
44
|
+
"didyoumean": "^1.2.2",
|
|
45
|
+
"enquirer": "^2.3.6",
|
|
46
|
+
"execa": "^4.0.3",
|
|
47
|
+
"fs-extra": "^8.1.0",
|
|
48
|
+
"https-proxy-agent": "^5.0.1",
|
|
49
|
+
"inquirer": "^6.5.0",
|
|
50
|
+
"lodash": "^4.17.21",
|
|
51
|
+
"log-symbols": "^3.0.0",
|
|
52
|
+
"lowdb": "^1.0.0",
|
|
53
|
+
"make-dir": "^3.0.0",
|
|
54
|
+
"node-fetch": "^2.6.0",
|
|
55
|
+
"open": "^7.0.0",
|
|
56
|
+
"ora": "^4.0.2",
|
|
57
|
+
"portfinder": "^1.0.28",
|
|
58
|
+
"progress": "^2.0.3",
|
|
59
|
+
"query-string": "^6.8.1",
|
|
60
|
+
"reflect-metadata": "^0.1.13",
|
|
61
|
+
"semver": "^7.3.7",
|
|
62
|
+
"tar-fs": "^2.0.1",
|
|
63
|
+
"terminal-link": "^2.1.1",
|
|
64
|
+
"unzipper": "^0.10.10",
|
|
65
|
+
"update-notifier": "^4.0.0",
|
|
66
|
+
"xdg-basedir": "^4.0.0",
|
|
67
|
+
"yargs": "^16.2.0",
|
|
68
|
+
"yargs-parser": "^21.0.1"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@types/jest": "^27",
|
|
72
|
+
"@types/koa__router": "^8.0.11",
|
|
73
|
+
"@types/lodash": "^4.14.182",
|
|
74
|
+
"@types/node": "^12.12.38",
|
|
75
|
+
"@types/node-fetch": "^2.5.4",
|
|
76
|
+
"@types/react": "^17.0.37",
|
|
77
|
+
"@types/semver": "^7.3.9",
|
|
78
|
+
"@types/webpack-dev-server": "^3.11.1",
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "^4.8.1",
|
|
80
|
+
"@typescript-eslint/parser": "^4.8.1",
|
|
81
|
+
"eslint": "^7.14.0",
|
|
82
|
+
"eslint-config-alloy": "^3.8.2",
|
|
83
|
+
"husky": "^3.0.9",
|
|
84
|
+
"jest": "^27",
|
|
85
|
+
"rimraf": "^3.0.2",
|
|
86
|
+
"ts-jest": "^27",
|
|
87
|
+
"typescript": "^4.7.2"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cloudbase/cli",
|
|
3
|
+
"version": "2.1.13",
|
|
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
|
+
"prepublishOnly": "npm run build"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/TencentCloudBase/cloud-base-cli.git"
|
|
20
|
+
},
|
|
21
|
+
"bin": {
|
|
22
|
+
"tcb": "bin/tcb.js",
|
|
23
|
+
"cloudbase": "bin/cloudbase.js"
|
|
24
|
+
},
|
|
25
|
+
"husky": {
|
|
26
|
+
"hooks": {
|
|
27
|
+
"pre-commit": "npm run build"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"author": "cwuyiqing@gmail.com",
|
|
31
|
+
"license": "ISC",
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@cloudbase/cloud-api": "^0.5.5",
|
|
34
|
+
"@cloudbase/framework-core": "^1.9.6",
|
|
35
|
+
"@cloudbase/lowcode-cli": "^0.17.2",
|
|
36
|
+
"@cloudbase/manager-node": "4.0.1",
|
|
37
|
+
"@cloudbase/toolbox": "^0.7.4",
|
|
38
|
+
"@sentry/node": "^5.10.2",
|
|
39
|
+
"address": "^1.1.2",
|
|
40
|
+
"chalk": "^2.4.2",
|
|
41
|
+
"cli-table3": "^0.5.1",
|
|
42
|
+
"commander": "7",
|
|
43
|
+
"del": "^5.1.0",
|
|
44
|
+
"didyoumean": "^1.2.2",
|
|
45
|
+
"enquirer": "^2.3.6",
|
|
46
|
+
"execa": "^4.0.3",
|
|
47
|
+
"fs-extra": "^8.1.0",
|
|
48
|
+
"https-proxy-agent": "^5.0.1",
|
|
49
|
+
"inquirer": "^6.5.0",
|
|
50
|
+
"lodash": "^4.17.21",
|
|
51
|
+
"log-symbols": "^3.0.0",
|
|
52
|
+
"lowdb": "^1.0.0",
|
|
53
|
+
"make-dir": "^3.0.0",
|
|
54
|
+
"node-fetch": "^2.6.0",
|
|
55
|
+
"open": "^7.0.0",
|
|
56
|
+
"ora": "^4.0.2",
|
|
57
|
+
"portfinder": "^1.0.28",
|
|
58
|
+
"progress": "^2.0.3",
|
|
59
|
+
"query-string": "^6.8.1",
|
|
60
|
+
"reflect-metadata": "^0.1.13",
|
|
61
|
+
"semver": "^7.3.7",
|
|
62
|
+
"tar-fs": "^2.0.1",
|
|
63
|
+
"terminal-link": "^2.1.1",
|
|
64
|
+
"unzipper": "^0.10.10",
|
|
65
|
+
"update-notifier": "^4.0.0",
|
|
66
|
+
"xdg-basedir": "^4.0.0",
|
|
67
|
+
"yargs": "^16.2.0",
|
|
68
|
+
"yargs-parser": "^21.0.1"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@types/jest": "^27",
|
|
72
|
+
"@types/koa__router": "^8.0.11",
|
|
73
|
+
"@types/lodash": "^4.14.182",
|
|
74
|
+
"@types/node": "^12.12.38",
|
|
75
|
+
"@types/node-fetch": "^2.5.4",
|
|
76
|
+
"@types/react": "^17.0.37",
|
|
77
|
+
"@types/semver": "^7.3.9",
|
|
78
|
+
"@types/webpack-dev-server": "^3.11.1",
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "^4.8.1",
|
|
80
|
+
"@typescript-eslint/parser": "^4.8.1",
|
|
81
|
+
"eslint": "^7.14.0",
|
|
82
|
+
"eslint-config-alloy": "^3.8.2",
|
|
83
|
+
"husky": "^3.0.9",
|
|
84
|
+
"jest": "^27",
|
|
85
|
+
"rimraf": "^3.0.2",
|
|
86
|
+
"ts-jest": "^27",
|
|
87
|
+
"typescript": "^4.7.2"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cloudbase/cli",
|
|
3
|
+
"version": "2.1.13",
|
|
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
|
+
"prepublishOnly": "npm run build"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/TencentCloudBase/cloud-base-cli.git"
|
|
20
|
+
},
|
|
21
|
+
"bin": {
|
|
22
|
+
"tcb": "bin/tcb.js",
|
|
23
|
+
"cloudbase": "bin/cloudbase.js"
|
|
24
|
+
},
|
|
25
|
+
"husky": {
|
|
26
|
+
"hooks": {
|
|
27
|
+
"pre-commit": "npm run build"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"author": "cwuyiqing@gmail.com",
|
|
31
|
+
"license": "ISC",
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@cloudbase/cloud-api": "^0.5.5",
|
|
34
|
+
"@cloudbase/framework-core": "^1.9.6",
|
|
35
|
+
"@cloudbase/lowcode-cli": "^0.17.3",
|
|
36
|
+
"@cloudbase/manager-node": "4.0.1",
|
|
37
|
+
"@cloudbase/toolbox": "^0.7.4",
|
|
38
|
+
"@sentry/node": "^5.10.2",
|
|
39
|
+
"address": "^1.1.2",
|
|
40
|
+
"chalk": "^2.4.2",
|
|
41
|
+
"cli-table3": "^0.5.1",
|
|
42
|
+
"commander": "7",
|
|
43
|
+
"del": "^5.1.0",
|
|
44
|
+
"didyoumean": "^1.2.2",
|
|
45
|
+
"enquirer": "^2.3.6",
|
|
46
|
+
"execa": "^4.0.3",
|
|
47
|
+
"fs-extra": "^8.1.0",
|
|
48
|
+
"https-proxy-agent": "^5.0.1",
|
|
49
|
+
"inquirer": "^6.5.0",
|
|
50
|
+
"lodash": "^4.17.21",
|
|
51
|
+
"log-symbols": "^3.0.0",
|
|
52
|
+
"lowdb": "^1.0.0",
|
|
53
|
+
"make-dir": "^3.0.0",
|
|
54
|
+
"node-fetch": "^2.6.0",
|
|
55
|
+
"open": "^7.0.0",
|
|
56
|
+
"ora": "^4.0.2",
|
|
57
|
+
"portfinder": "^1.0.28",
|
|
58
|
+
"progress": "^2.0.3",
|
|
59
|
+
"query-string": "^6.8.1",
|
|
60
|
+
"reflect-metadata": "^0.1.13",
|
|
61
|
+
"semver": "^7.3.7",
|
|
62
|
+
"tar-fs": "^2.0.1",
|
|
63
|
+
"terminal-link": "^2.1.1",
|
|
64
|
+
"unzipper": "^0.10.10",
|
|
65
|
+
"update-notifier": "^4.0.0",
|
|
66
|
+
"xdg-basedir": "^4.0.0",
|
|
67
|
+
"yargs": "^16.2.0",
|
|
68
|
+
"yargs-parser": "^21.0.1"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@types/jest": "^27",
|
|
72
|
+
"@types/koa__router": "^8.0.11",
|
|
73
|
+
"@types/lodash": "^4.14.182",
|
|
74
|
+
"@types/node": "^12.12.38",
|
|
75
|
+
"@types/node-fetch": "^2.5.4",
|
|
76
|
+
"@types/react": "^17.0.37",
|
|
77
|
+
"@types/semver": "^7.3.9",
|
|
78
|
+
"@types/webpack-dev-server": "^3.11.1",
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "^4.8.1",
|
|
80
|
+
"@typescript-eslint/parser": "^4.8.1",
|
|
81
|
+
"eslint": "^7.14.0",
|
|
82
|
+
"eslint-config-alloy": "^3.8.2",
|
|
83
|
+
"husky": "^3.0.9",
|
|
84
|
+
"jest": "^27",
|
|
85
|
+
"rimraf": "^3.0.2",
|
|
86
|
+
"ts-jest": "^27",
|
|
87
|
+
"typescript": "^4.7.2"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cloudbase/cli",
|
|
3
|
+
"version": "2.1.14",
|
|
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
|
+
"prepublishOnly": "npm run build"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/TencentCloudBase/cloud-base-cli.git"
|
|
20
|
+
},
|
|
21
|
+
"bin": {
|
|
22
|
+
"tcb": "bin/tcb.js",
|
|
23
|
+
"cloudbase": "bin/cloudbase.js"
|
|
24
|
+
},
|
|
25
|
+
"husky": {
|
|
26
|
+
"hooks": {
|
|
27
|
+
"pre-commit": "npm run build"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"author": "cwuyiqing@gmail.com",
|
|
31
|
+
"license": "ISC",
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@cloudbase/cloud-api": "^0.5.5",
|
|
34
|
+
"@cloudbase/framework-core": "^1.9.6",
|
|
35
|
+
"@cloudbase/lowcode-cli": "^0.17.3",
|
|
36
|
+
"@cloudbase/manager-node": "4.0.1",
|
|
37
|
+
"@cloudbase/toolbox": "^0.7.4",
|
|
38
|
+
"@sentry/node": "^5.10.2",
|
|
39
|
+
"address": "^1.1.2",
|
|
40
|
+
"chalk": "^2.4.2",
|
|
41
|
+
"cli-table3": "^0.5.1",
|
|
42
|
+
"commander": "7",
|
|
43
|
+
"del": "^5.1.0",
|
|
44
|
+
"didyoumean": "^1.2.2",
|
|
45
|
+
"enquirer": "^2.3.6",
|
|
46
|
+
"execa": "^4.0.3",
|
|
47
|
+
"fs-extra": "^8.1.0",
|
|
48
|
+
"https-proxy-agent": "^5.0.1",
|
|
49
|
+
"inquirer": "^6.5.0",
|
|
50
|
+
"lodash": "^4.17.21",
|
|
51
|
+
"log-symbols": "^3.0.0",
|
|
52
|
+
"lowdb": "^1.0.0",
|
|
53
|
+
"make-dir": "^3.0.0",
|
|
54
|
+
"node-fetch": "^2.6.0",
|
|
55
|
+
"open": "^7.0.0",
|
|
56
|
+
"ora": "^4.0.2",
|
|
57
|
+
"portfinder": "^1.0.28",
|
|
58
|
+
"progress": "^2.0.3",
|
|
59
|
+
"query-string": "^6.8.1",
|
|
60
|
+
"reflect-metadata": "^0.1.13",
|
|
61
|
+
"semver": "^7.3.7",
|
|
62
|
+
"tar-fs": "^2.0.1",
|
|
63
|
+
"terminal-link": "^2.1.1",
|
|
64
|
+
"unzipper": "^0.10.10",
|
|
65
|
+
"update-notifier": "^4.0.0",
|
|
66
|
+
"xdg-basedir": "^4.0.0",
|
|
67
|
+
"yargs": "^16.2.0",
|
|
68
|
+
"yargs-parser": "^21.0.1"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@types/jest": "^27",
|
|
72
|
+
"@types/koa__router": "^8.0.11",
|
|
73
|
+
"@types/lodash": "^4.14.182",
|
|
74
|
+
"@types/node": "^12.12.38",
|
|
75
|
+
"@types/node-fetch": "^2.5.4",
|
|
76
|
+
"@types/react": "^17.0.37",
|
|
77
|
+
"@types/semver": "^7.3.9",
|
|
78
|
+
"@types/webpack-dev-server": "^3.11.1",
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "^4.8.1",
|
|
80
|
+
"@typescript-eslint/parser": "^4.8.1",
|
|
81
|
+
"eslint": "^7.14.0",
|
|
82
|
+
"eslint-config-alloy": "^3.8.2",
|
|
83
|
+
"husky": "^3.0.9",
|
|
84
|
+
"jest": "^27",
|
|
85
|
+
"rimraf": "^3.0.2",
|
|
86
|
+
"ts-jest": "^27",
|
|
87
|
+
"typescript": "^4.7.2"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cloudbase/cli",
|
|
3
|
+
"version": "2.1.14",
|
|
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
|
+
"prepublishOnly": "npm run build"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/TencentCloudBase/cloud-base-cli.git"
|
|
20
|
+
},
|
|
21
|
+
"bin": {
|
|
22
|
+
"tcb": "bin/tcb.js",
|
|
23
|
+
"cloudbase": "bin/cloudbase.js"
|
|
24
|
+
},
|
|
25
|
+
"husky": {
|
|
26
|
+
"hooks": {
|
|
27
|
+
"pre-commit": "npm run build"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"author": "cwuyiqing@gmail.com",
|
|
31
|
+
"license": "ISC",
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@cloudbase/cloud-api": "^0.5.5",
|
|
34
|
+
"@cloudbase/framework-core": "^1.9.6",
|
|
35
|
+
"@cloudbase/lowcode-cli": "^0.18.2",
|
|
36
|
+
"@cloudbase/manager-node": "4.0.1",
|
|
37
|
+
"@cloudbase/toolbox": "^0.7.4",
|
|
38
|
+
"@sentry/node": "^5.10.2",
|
|
39
|
+
"address": "^1.1.2",
|
|
40
|
+
"chalk": "^2.4.2",
|
|
41
|
+
"cli-table3": "^0.5.1",
|
|
42
|
+
"commander": "7",
|
|
43
|
+
"del": "^5.1.0",
|
|
44
|
+
"didyoumean": "^1.2.2",
|
|
45
|
+
"enquirer": "^2.3.6",
|
|
46
|
+
"execa": "^4.0.3",
|
|
47
|
+
"fs-extra": "^8.1.0",
|
|
48
|
+
"https-proxy-agent": "^5.0.1",
|
|
49
|
+
"inquirer": "^6.5.0",
|
|
50
|
+
"lodash": "^4.17.21",
|
|
51
|
+
"log-symbols": "^3.0.0",
|
|
52
|
+
"lowdb": "^1.0.0",
|
|
53
|
+
"make-dir": "^3.0.0",
|
|
54
|
+
"node-fetch": "^2.6.0",
|
|
55
|
+
"open": "^7.0.0",
|
|
56
|
+
"ora": "^4.0.2",
|
|
57
|
+
"portfinder": "^1.0.28",
|
|
58
|
+
"progress": "^2.0.3",
|
|
59
|
+
"query-string": "^6.8.1",
|
|
60
|
+
"reflect-metadata": "^0.1.13",
|
|
61
|
+
"semver": "^7.3.7",
|
|
62
|
+
"tar-fs": "^2.0.1",
|
|
63
|
+
"terminal-link": "^2.1.1",
|
|
64
|
+
"unzipper": "^0.10.10",
|
|
65
|
+
"update-notifier": "^4.0.0",
|
|
66
|
+
"xdg-basedir": "^4.0.0",
|
|
67
|
+
"yargs": "^16.2.0",
|
|
68
|
+
"yargs-parser": "^21.0.1"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@types/jest": "^27",
|
|
72
|
+
"@types/koa__router": "^8.0.11",
|
|
73
|
+
"@types/lodash": "^4.14.182",
|
|
74
|
+
"@types/node": "^12.12.38",
|
|
75
|
+
"@types/node-fetch": "^2.5.4",
|
|
76
|
+
"@types/react": "^17.0.37",
|
|
77
|
+
"@types/semver": "^7.3.9",
|
|
78
|
+
"@types/webpack-dev-server": "^3.11.1",
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "^4.8.1",
|
|
80
|
+
"@typescript-eslint/parser": "^4.8.1",
|
|
81
|
+
"eslint": "^7.14.0",
|
|
82
|
+
"eslint-config-alloy": "^3.8.2",
|
|
83
|
+
"husky": "^3.0.9",
|
|
84
|
+
"jest": "^27",
|
|
85
|
+
"rimraf": "^3.0.2",
|
|
86
|
+
"ts-jest": "^27",
|
|
87
|
+
"typescript": "^4.7.2"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cloudbase/cli",
|
|
3
|
+
"version": "2.2.2",
|
|
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
|
+
"prepublishOnly": "npm run build"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/TencentCloudBase/cloud-base-cli.git"
|
|
20
|
+
},
|
|
21
|
+
"bin": {
|
|
22
|
+
"tcb": "bin/tcb.js",
|
|
23
|
+
"cloudbase": "bin/cloudbase.js"
|
|
24
|
+
},
|
|
25
|
+
"husky": {
|
|
26
|
+
"hooks": {
|
|
27
|
+
"pre-commit": "npm run build"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"author": "cwuyiqing@gmail.com",
|
|
31
|
+
"license": "ISC",
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@cloudbase/cloud-api": "^0.5.5",
|
|
34
|
+
"@cloudbase/framework-core": "^1.9.6",
|
|
35
|
+
"@cloudbase/lowcode-cli": "^0.18.2",
|
|
36
|
+
"@cloudbase/manager-node": "4.0.1",
|
|
37
|
+
"@cloudbase/toolbox": "^0.7.4",
|
|
38
|
+
"@sentry/node": "^5.10.2",
|
|
39
|
+
"address": "^1.1.2",
|
|
40
|
+
"chalk": "^2.4.2",
|
|
41
|
+
"cli-table3": "^0.5.1",
|
|
42
|
+
"commander": "7",
|
|
43
|
+
"del": "^5.1.0",
|
|
44
|
+
"didyoumean": "^1.2.2",
|
|
45
|
+
"enquirer": "^2.3.6",
|
|
46
|
+
"execa": "^4.0.3",
|
|
47
|
+
"fs-extra": "^8.1.0",
|
|
48
|
+
"https-proxy-agent": "^5.0.1",
|
|
49
|
+
"inquirer": "^6.5.0",
|
|
50
|
+
"lodash": "^4.17.21",
|
|
51
|
+
"log-symbols": "^3.0.0",
|
|
52
|
+
"lowdb": "^1.0.0",
|
|
53
|
+
"make-dir": "^3.0.0",
|
|
54
|
+
"node-fetch": "^2.6.0",
|
|
55
|
+
"open": "^7.0.0",
|
|
56
|
+
"ora": "^4.0.2",
|
|
57
|
+
"portfinder": "^1.0.28",
|
|
58
|
+
"progress": "^2.0.3",
|
|
59
|
+
"query-string": "^6.8.1",
|
|
60
|
+
"reflect-metadata": "^0.1.13",
|
|
61
|
+
"semver": "^7.3.7",
|
|
62
|
+
"tar-fs": "^2.0.1",
|
|
63
|
+
"terminal-link": "^2.1.1",
|
|
64
|
+
"unzipper": "^0.10.10",
|
|
65
|
+
"update-notifier": "^4.0.0",
|
|
66
|
+
"xdg-basedir": "^4.0.0",
|
|
67
|
+
"yargs": "^16.2.0",
|
|
68
|
+
"yargs-parser": "^21.0.1"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@types/jest": "^27",
|
|
72
|
+
"@types/koa__router": "^8.0.11",
|
|
73
|
+
"@types/lodash": "^4.14.182",
|
|
74
|
+
"@types/node": "^12.12.38",
|
|
75
|
+
"@types/node-fetch": "^2.5.4",
|
|
76
|
+
"@types/react": "^17.0.37",
|
|
77
|
+
"@types/semver": "^7.3.9",
|
|
78
|
+
"@types/webpack-dev-server": "^3.11.1",
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "^4.8.1",
|
|
80
|
+
"@typescript-eslint/parser": "^4.8.1",
|
|
81
|
+
"eslint": "^7.14.0",
|
|
82
|
+
"eslint-config-alloy": "^3.8.2",
|
|
83
|
+
"husky": "^3.0.9",
|
|
84
|
+
"jest": "^27",
|
|
85
|
+
"rimraf": "^3.0.2",
|
|
86
|
+
"ts-jest": "^27",
|
|
87
|
+
"typescript": "^4.7.2"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cloudbase/cli",
|
|
3
|
+
"version": "2.2.2",
|
|
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
|
+
"prepublishOnly": "npm run build"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/TencentCloudBase/cloud-base-cli.git"
|
|
20
|
+
},
|
|
21
|
+
"bin": {
|
|
22
|
+
"tcb": "bin/tcb.js",
|
|
23
|
+
"cloudbase": "bin/cloudbase.js"
|
|
24
|
+
},
|
|
25
|
+
"husky": {
|
|
26
|
+
"hooks": {
|
|
27
|
+
"pre-commit": "npm run build"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"author": "cwuyiqing@gmail.com",
|
|
31
|
+
"license": "ISC",
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@cloudbase/cloud-api": "^0.5.5",
|
|
34
|
+
"@cloudbase/framework-core": "^1.9.6",
|
|
35
|
+
"@cloudbase/lowcode-cli": "^0.18.2",
|
|
36
|
+
"@cloudbase/manager-node": "4.0.1",
|
|
37
|
+
"@cloudbase/toolbox": "^0.7.4",
|
|
38
|
+
"@sentry/node": "^5.10.2",
|
|
39
|
+
"address": "^1.1.2",
|
|
40
|
+
"chalk": "^2.4.2",
|
|
41
|
+
"cli-table3": "^0.5.1",
|
|
42
|
+
"commander": "7",
|
|
43
|
+
"del": "^5.1.0",
|
|
44
|
+
"didyoumean": "^1.2.2",
|
|
45
|
+
"enquirer": "^2.3.6",
|
|
46
|
+
"execa": "^4.0.3",
|
|
47
|
+
"fs-extra": "^8.1.0",
|
|
48
|
+
"https-proxy-agent": "^5.0.1",
|
|
49
|
+
"inquirer": "^6.5.0",
|
|
50
|
+
"lodash": "^4.17.21",
|
|
51
|
+
"log-symbols": "^3.0.0",
|
|
52
|
+
"lowdb": "^1.0.0",
|
|
53
|
+
"make-dir": "^3.0.0",
|
|
54
|
+
"node-fetch": "^2.6.0",
|
|
55
|
+
"open": "^7.0.0",
|
|
56
|
+
"ora": "^4.0.2",
|
|
57
|
+
"portfinder": "^1.0.28",
|
|
58
|
+
"progress": "^2.0.3",
|
|
59
|
+
"query-string": "^6.8.1",
|
|
60
|
+
"reflect-metadata": "^0.1.13",
|
|
61
|
+
"semver": "^7.3.7",
|
|
62
|
+
"tar-fs": "^2.0.1",
|
|
63
|
+
"terminal-link": "^2.1.1",
|
|
64
|
+
"unzipper": "^0.10.10",
|
|
65
|
+
"update-notifier": "^4.0.0",
|
|
66
|
+
"xdg-basedir": "^4.0.0",
|
|
67
|
+
"yargs": "^16.2.0",
|
|
68
|
+
"yargs-parser": "^21.0.1"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@types/jest": "^27",
|
|
72
|
+
"@types/koa__router": "^8.0.11",
|
|
73
|
+
"@types/lodash": "^4.14.182",
|
|
74
|
+
"@types/node": "^12.12.38",
|
|
75
|
+
"@types/node-fetch": "^2.5.4",
|
|
76
|
+
"@types/react": "^17.0.37",
|
|
77
|
+
"@types/semver": "^7.3.9",
|
|
78
|
+
"@types/webpack-dev-server": "^3.11.1",
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "^4.8.1",
|
|
80
|
+
"@typescript-eslint/parser": "^4.8.1",
|
|
81
|
+
"eslint": "^7.14.0",
|
|
82
|
+
"eslint-config-alloy": "^3.8.2",
|
|
83
|
+
"husky": "^3.0.9",
|
|
84
|
+
"jest": "^27",
|
|
85
|
+
"rimraf": "^3.0.2",
|
|
86
|
+
"ts-jest": "^27",
|
|
87
|
+
"typescript": "^4.7.2"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import _ from 'lodash'
|
|
2
|
+
import { Command, ICommand } from '../common'
|
|
3
|
+
import { watchApp } from '@cloudbase/lowcode-cli'
|
|
4
|
+
import { InjectParams, Log, Logger, CmdContext, ArgsOptions } from '../../decorators'
|
|
5
|
+
|
|
6
|
+
@ICommand()
|
|
7
|
+
export class LowCodeWatch extends Command {
|
|
8
|
+
get options() {
|
|
9
|
+
return {
|
|
10
|
+
cmd: 'lowcode',
|
|
11
|
+
childCmd: 'watch',
|
|
12
|
+
options: [
|
|
13
|
+
{
|
|
14
|
+
flags: '--verbose',
|
|
15
|
+
desc: '是否打印详细日志'
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
flags: '--wx-devtool-path <wxDevtoolPath>',
|
|
19
|
+
desc: '微信开发者工具的安装路径'
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
desc: '开启云开发低码的本地构建模式',
|
|
23
|
+
requiredEnvId: false
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@InjectParams()
|
|
28
|
+
async execute(@CmdContext() ctx, @ArgsOptions() options) {
|
|
29
|
+
await watchApp({
|
|
30
|
+
watchPort: 8288,
|
|
31
|
+
wxDevtoolPath: options?.wxDevtoolPath
|
|
32
|
+
})
|
|
33
|
+
}
|
|
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
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _ from 'lodash'
|
|
2
|
+
import { Command, ICommand } from '../common'
|
|
3
|
+
import { watchApp } from '@cloudbase/lowcode-cli'
|
|
4
|
+
import { InjectParams, Log, Logger, CmdContext, ArgsOptions } from '../../decorators'
|
|
5
|
+
|
|
6
|
+
@ICommand()
|
|
7
|
+
export class LowCodeWatch extends Command {
|
|
8
|
+
get options() {
|
|
9
|
+
return {
|
|
10
|
+
cmd: 'lowcode',
|
|
11
|
+
childCmd: 'watch',
|
|
12
|
+
options: [
|
|
13
|
+
{
|
|
14
|
+
flags: '--verbose',
|
|
15
|
+
desc: '是否打印详细日志'
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
flags: '--wx-devtool-path <wxDevtoolPath>',
|
|
19
|
+
desc: '微信开发者工具的安装路径'
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
desc: '开启云开发低码的本地构建模式',
|
|
23
|
+
requiredEnvId: false
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@InjectParams()
|
|
28
|
+
async execute(@CmdContext() ctx, @ArgsOptions() options) {
|
|
29
|
+
await watchApp({
|
|
30
|
+
watchPort: 8288,
|
|
31
|
+
wxDevtoolPath: options?.wxDevtoolPath
|
|
32
|
+
})
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _ from 'lodash'
|
|
2
|
+
import { Command, ICommand } from '../common'
|
|
3
|
+
import { watchApp } from '@cloudbase/lowcode-cli'
|
|
4
|
+
import { InjectParams, Log, Logger, CmdContext, ArgsOptions } from '../../decorators'
|
|
5
|
+
|
|
6
|
+
@ICommand()
|
|
7
|
+
export class LowCodeWatch extends Command {
|
|
8
|
+
get options() {
|
|
9
|
+
return {
|
|
10
|
+
cmd: 'lowcode',
|
|
11
|
+
childCmd: 'watch',
|
|
12
|
+
options: [
|
|
13
|
+
{
|
|
14
|
+
flags: '--verbose',
|
|
15
|
+
desc: '是否打印详细日志'
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
flags: '--wx-devtool-path <wxDevtoolPath>',
|
|
19
|
+
desc: '微信开发者工具的安装路径'
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
desc: '开启微搭低代码的本地构建模式',
|
|
23
|
+
requiredEnvId: false
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@InjectParams()
|
|
28
|
+
async execute(@CmdContext() ctx, @ArgsOptions() options) {
|
|
29
|
+
await watchApp({
|
|
30
|
+
watchPort: 8288,
|
|
31
|
+
wxDevtoolPath: options?.wxDevtoolPath
|
|
32
|
+
})
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import 'reflect-metadata'
|
|
2
|
+
import { registerCommands } from './commands/common'
|
|
3
|
+
import './commands'
|
|
4
|
+
|
|
5
|
+
export { smartDeploy } from './commands'
|
|
6
|
+
|
|
7
|
+
registerCommands()
|
|
8
|
+
|
|
9
|
+
// HACK: 部分依赖使用了 globalThis,会在 Node12 以下的版本报错
|
|
10
|
+
if (typeof globalThis === undefined) {
|
|
11
|
+
// eslint-disable-next-line no-undef
|
|
12
|
+
;(globalThis as any) = global
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import 'reflect-metadata'
|
|
2
|
+
import { registerCommands } from './commands/common'
|
|
3
|
+
import './commands'
|
|
4
|
+
|
|
5
|
+
export { smartDeploy } from './commands'
|
|
6
|
+
|
|
7
|
+
registerCommands()
|
|
8
|
+
|
|
9
|
+
// HACK: 部分依赖使用了 globalThis,会在 Node12 以下的版本报错
|
|
10
|
+
if (typeof globalThis === undefined) {
|
|
11
|
+
// eslint-disable-next-line no-undef
|
|
12
|
+
;(globalThis as any) = global
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
console.log("daniel tcb")
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import 'reflect-metadata'
|
|
2
|
+
import { registerCommands } from './commands/common'
|
|
3
|
+
import './commands'
|
|
4
|
+
|
|
5
|
+
export { smartDeploy } from './commands'
|
|
6
|
+
|
|
7
|
+
registerCommands()
|
|
8
|
+
|
|
9
|
+
// HACK: 部分依赖使用了 globalThis,会在 Node12 以下的版本报错
|
|
10
|
+
if (typeof globalThis === undefined) {
|
|
11
|
+
// eslint-disable-next-line no-undef
|
|
12
|
+
;(globalThis as any) = global
|
|
13
|
+
}
|
|
@@ -147,7 +147,7 @@ LowCodeCreateComps = __decorate([
|
|
|
147
147
|
})
|
|
148
148
|
], LowCodeCreateComps);
|
|
149
149
|
exports.LowCodeCreateComps = LowCodeCreateComps;
|
|
150
|
-
class LowCodeBuildComps extends common_1.Command {
|
|
150
|
+
let LowCodeBuildComps = class LowCodeBuildComps extends common_1.Command {
|
|
151
151
|
get options() {
|
|
152
152
|
return {
|
|
153
153
|
cmd: 'lowcode',
|
|
@@ -172,7 +172,7 @@ class LowCodeBuildComps extends common_1.Command {
|
|
|
172
172
|
throw new error_1.CloudBaseError('请参考文档填写 cloudbaserc 配置: https://docs.cloudbase.net/lowcode/custom-components/config/config-comps');
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
-
}
|
|
175
|
+
};
|
|
176
176
|
__decorate([
|
|
177
177
|
(0, decorators_1.InjectParams)(),
|
|
178
178
|
__param(0, (0, decorators_1.CmdContext)()),
|
|
@@ -181,6 +181,11 @@ __decorate([
|
|
|
181
181
|
__metadata("design:paramtypes", [Object, Object]),
|
|
182
182
|
__metadata("design:returntype", Promise)
|
|
183
183
|
], LowCodeBuildComps.prototype, "execute", null);
|
|
184
|
+
LowCodeBuildComps = __decorate([
|
|
185
|
+
(0, common_1.ICommand)({
|
|
186
|
+
supportPrivate: true
|
|
187
|
+
})
|
|
188
|
+
], LowCodeBuildComps);
|
|
184
189
|
exports.LowCodeBuildComps = LowCodeBuildComps;
|
|
185
190
|
let LowCodeDebugComps = class LowCodeDebugComps extends common_1.Command {
|
|
186
191
|
get options() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/cli",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.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.9.6",
|
|
35
|
-
"@cloudbase/lowcode-cli": "^0.18.
|
|
35
|
+
"@cloudbase/lowcode-cli": "^0.18.2",
|
|
36
36
|
"@cloudbase/manager-node": "4.0.1",
|
|
37
37
|
"@cloudbase/toolbox": "^0.7.4",
|
|
38
38
|
"@sentry/node": "^5.10.2",
|