vona-cli-set-api 1.1.102 → 1.1.106
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/README.md
CHANGED
|
@@ -1 +1,49 @@
|
|
|
1
1
|
# vona-cli-set-api
|
|
2
|
+
|
|
3
|
+
This package contains the authoritative Vona command catalog for backend-oriented CLI workflows.
|
|
4
|
+
|
|
5
|
+
## Source of truth
|
|
6
|
+
|
|
7
|
+
The top-level command-family registry lives in:
|
|
8
|
+
|
|
9
|
+
- `src/lib/commands.ts`
|
|
10
|
+
|
|
11
|
+
Inspect this file first when you need to answer:
|
|
12
|
+
|
|
13
|
+
- which Vona command families exist
|
|
14
|
+
- which command names are registered
|
|
15
|
+
- which command module implements each entry
|
|
16
|
+
|
|
17
|
+
Current families include:
|
|
18
|
+
|
|
19
|
+
- `default`
|
|
20
|
+
- `bin`
|
|
21
|
+
- `create`
|
|
22
|
+
- `init`
|
|
23
|
+
- `tools`
|
|
24
|
+
|
|
25
|
+
## Command metadata surface
|
|
26
|
+
|
|
27
|
+
Each command module under `src/lib/command/` provides the main CLI-facing metadata for that command, typically including:
|
|
28
|
+
|
|
29
|
+
- `bean`
|
|
30
|
+
- `info.title`
|
|
31
|
+
- `info.usage`
|
|
32
|
+
- `options`
|
|
33
|
+
|
|
34
|
+
Representative example:
|
|
35
|
+
|
|
36
|
+
- `src/lib/command/bin.play.ts`
|
|
37
|
+
|
|
38
|
+
## Recommended navigation path
|
|
39
|
+
|
|
40
|
+
1. run `npm run vona`
|
|
41
|
+
2. inspect `../cli/src/bin/vona.ts` for entry dispatch only
|
|
42
|
+
3. inspect `src/lib/commands.ts` for the authoritative family map
|
|
43
|
+
4. inspect the specific command module for usage and options
|
|
44
|
+
|
|
45
|
+
## Public reference
|
|
46
|
+
|
|
47
|
+
For the compact top-level overview shared across Vona and Zova, see:
|
|
48
|
+
|
|
49
|
+
- `../../../cabloy-docs/reference/cli-reference.md`
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"files": ["assets", "dist", "src"],
|
|
23
23
|
"scripts": {
|
|
24
24
|
"clean": "rimraf dist tsconfig.build.tsbuildinfo",
|
|
25
|
-
"tsc:publish": "npm run clean && vona :bin:buildModule --sourcemap && tsc -p tsconfig.build.json",
|
|
25
|
+
"tsc:publish": "npm run clean && node <%=argv.suite?'../../../../../':'../../../'%>packages-cli/cli/src/bin/vona.ts :bin:buildModule --sourcemap && tsc -p tsconfig.build.json",
|
|
26
26
|
"prepublishOnly": "npm run tsc:publish",
|
|
27
27
|
"prepack": "clean-package",
|
|
28
28
|
"postpack": "clean-package restore && npm run clean"
|
package/dist/index.js
CHANGED
|
@@ -918,11 +918,7 @@ class CliBinTest extends BeanCliBase {
|
|
|
918
918
|
// globs
|
|
919
919
|
let patterns;
|
|
920
920
|
if (argv._.length > 0) {
|
|
921
|
-
patterns = argv._
|
|
922
|
-
if (item.startsWith('src/')) return item;
|
|
923
|
-
if (item.startsWith('vona/src/')) return item.substring('vona/'.length);
|
|
924
|
-
return `src/**/test/**/${item}`;
|
|
925
|
-
});
|
|
921
|
+
patterns = this._normalizeTestPatterns(argv._);
|
|
926
922
|
} else {
|
|
927
923
|
patterns = this._combineTestPatterns(projectPath, modulesMeta);
|
|
928
924
|
}
|
|
@@ -967,6 +963,19 @@ class CliBinTest extends BeanCliBase {
|
|
|
967
963
|
});
|
|
968
964
|
});
|
|
969
965
|
}
|
|
966
|
+
_normalizeTestPatterns(items) {
|
|
967
|
+
return items.flatMap(item => this._normalizeTestPattern(item));
|
|
968
|
+
}
|
|
969
|
+
_normalizeTestPattern(item) {
|
|
970
|
+
item = item.replaceAll('\\', '/');
|
|
971
|
+
if (item.startsWith('./')) item = item.substring(2);
|
|
972
|
+
if (item.startsWith('src/')) return item;
|
|
973
|
+
if (item.startsWith('vona/src/')) return item.substring('vona/'.length);
|
|
974
|
+
if (item.includes('/test/')) {
|
|
975
|
+
return [`src/module/${item}`, `src/**/modules/${item}`];
|
|
976
|
+
}
|
|
977
|
+
return `src/**/test/**/${item}`;
|
|
978
|
+
}
|
|
970
979
|
_combineTestPatterns(projectPath, modulesMeta) {
|
|
971
980
|
const patterns = [];
|
|
972
981
|
for (const moduleName in modulesMeta.modules) {
|
|
@@ -1050,9 +1059,12 @@ class CliCreateBean extends BeanCliBase {
|
|
|
1050
1059
|
await super.execute();
|
|
1051
1060
|
// ssrSiteModuleName
|
|
1052
1061
|
argv.ssrSiteModuleName = fs.existsSync(path.join(argv.projectPath, 'src/suite/cabloy-start')) ? 'vona-module-start-siteadmin' : 'vona-module-basic-siteadmin';
|
|
1062
|
+
argv.ssrSiteModuleNameWeb = fs.existsSync(path.join(argv.projectPath, 'src/suite/cabloy-start')) ? 'vona-module-start-siteweb' : 'vona-module-basic-siteweb';
|
|
1053
1063
|
argv.ssrSiteOnionName = fs.existsSync(path.join(argv.projectPath, 'src/suite/cabloy-start')) ? 'start-siteadmin:admin' : 'basic-siteadmin:admin';
|
|
1064
|
+
argv.ssrSiteOnionNameWeb = fs.existsSync(path.join(argv.projectPath, 'src/suite/cabloy-start')) ? 'start-siteweb:web' : 'basic-siteweb:web';
|
|
1054
1065
|
argv.ssrSiteGroupName = fs.existsSync(path.join(argv.projectPath, 'src/suite/cabloy-start')) ? 'start-siteadmin:management' : 'basic-siteadmin:management';
|
|
1055
1066
|
argv.ssrSiteRestNpm = fs.existsSync(path.join(argv.projectPath, 'src/suite/cabloy-start')) ? 'zova-rest-cabloy-start-admin' : 'zova-rest-cabloy-basic-admin';
|
|
1067
|
+
argv.ssrSiteRestNpmWeb = fs.existsSync(path.join(argv.projectPath, 'src/suite/cabloy-start')) ? 'zova-rest-cabloy-start-web' : 'zova-rest-cabloy-basic-web';
|
|
1056
1068
|
// module name/info
|
|
1057
1069
|
const moduleName = argv.module;
|
|
1058
1070
|
argv.moduleInfo = this.helper.parseModuleInfo(moduleName);
|
|
@@ -2777,8 +2789,8 @@ var binBuild = {
|
|
|
2777
2789
|
bean: 'bin.build',
|
|
2778
2790
|
info: {
|
|
2779
2791
|
version: '5.0.0',
|
|
2780
|
-
title: 'Cli:
|
|
2781
|
-
usage: 'npm run vona :bin:build -- [--workers=] [--flavor=]
|
|
2792
|
+
title: 'Cli: Bin: Build',
|
|
2793
|
+
usage: 'npm run vona :bin:build -- [--workers=] [--flavor=]'
|
|
2782
2794
|
},
|
|
2783
2795
|
options: {
|
|
2784
2796
|
workers: {
|
|
@@ -2796,7 +2808,7 @@ var binBuildGeneral = {
|
|
|
2796
2808
|
bean: 'bin.buildGeneral',
|
|
2797
2809
|
info: {
|
|
2798
2810
|
version: '5.0.0',
|
|
2799
|
-
title: 'Cli:
|
|
2811
|
+
title: 'Cli: Bin: Build General',
|
|
2800
2812
|
usage: 'npm run vona :bin:buildGeneral -- [--minify] [--sourcemap]'
|
|
2801
2813
|
},
|
|
2802
2814
|
options: {
|
|
@@ -2815,7 +2827,7 @@ var binBuildModule = {
|
|
|
2815
2827
|
bean: 'bin.buildModule',
|
|
2816
2828
|
info: {
|
|
2817
2829
|
version: '5.0.0',
|
|
2818
|
-
title: 'Cli:
|
|
2830
|
+
title: 'Cli: Bin: Build Module',
|
|
2819
2831
|
usage: 'npm run vona :bin:buildModule -- [--minify] [--sourcemap]'
|
|
2820
2832
|
},
|
|
2821
2833
|
options: {
|
|
@@ -2869,7 +2881,7 @@ var binPlay = {
|
|
|
2869
2881
|
info: {
|
|
2870
2882
|
version: '5.0.0',
|
|
2871
2883
|
title: 'Cli: Bin: Play',
|
|
2872
|
-
usage: 'npm run vona :bin:play [index.ts] -- [--flavor=] [--retainRuntime
|
|
2884
|
+
usage: 'npm run vona :bin:play [index.ts] -- [--mode=] [--flavor=] [--retainRuntime] [--attach]'
|
|
2873
2885
|
},
|
|
2874
2886
|
options: {
|
|
2875
2887
|
mode: {
|
|
@@ -2897,7 +2909,7 @@ var binTest = {
|
|
|
2897
2909
|
info: {
|
|
2898
2910
|
version: '5.0.0',
|
|
2899
2911
|
title: 'Cli: Bin: Test',
|
|
2900
|
-
usage: 'npm run vona :bin:test -- [--coverage
|
|
2912
|
+
usage: 'npm run vona :bin:test -- [--coverage] [--flavor=]'
|
|
2901
2913
|
},
|
|
2902
2914
|
options: {
|
|
2903
2915
|
coverage: {
|
|
@@ -12,5 +12,7 @@ export declare class CliBinTest extends BeanCliBase {
|
|
|
12
12
|
_test(projectPath: string): Promise<void>;
|
|
13
13
|
_run(projectPath: string, modulesMeta: Awaited<ReturnType<typeof glob>>): Promise<void>;
|
|
14
14
|
_outputCoverageReportViewer(projectPath: string): Promise<void>;
|
|
15
|
+
_normalizeTestPatterns(items: string[]): string[];
|
|
16
|
+
_normalizeTestPattern(item: string): string | string[];
|
|
15
17
|
_combineTestPatterns(projectPath: string, modulesMeta: Awaited<ReturnType<typeof glob>>): string[];
|
|
16
18
|
}
|
|
@@ -11,9 +11,12 @@ declare module '@cabloy/cli' {
|
|
|
11
11
|
moduleResourceName: string;
|
|
12
12
|
boilerplate: string;
|
|
13
13
|
ssrSiteModuleName: string;
|
|
14
|
+
ssrSiteModuleNameWeb: string;
|
|
14
15
|
ssrSiteOnionName: string;
|
|
16
|
+
ssrSiteOnionNameWeb: string;
|
|
15
17
|
ssrSiteGroupName: string;
|
|
16
18
|
ssrSiteRestNpm: string;
|
|
19
|
+
ssrSiteRestNpmWeb: string;
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
export declare class CliCreateBean extends BeanCliBase {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vona-cli-set-api",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "1.1.106",
|
|
4
|
+
"gitHead": "3380f8c5d3989242b60dc2a34cbb330f74335cbe",
|
|
5
5
|
"description": "vona cli-set-api",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"framework",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"clean": "rimraf dist dist-cli dist-toolsIsolate tsconfig.build.tsbuildinfo tsconfig.cli.tsbuildinfo tsconfig.isolate.tsbuildinfo",
|
|
35
|
-
"tsc:publish": "npm run clean && vona :bin:buildGeneral && tsc -p tsconfig.build.json && tsc -p tsconfig.cli.json && tsc -p tsconfig.isolate.json",
|
|
35
|
+
"tsc:publish": "npm run clean && node ../cli/src/bin/vona.ts :bin:buildGeneral && tsc -p tsconfig.build.json && tsc -p tsconfig.cli.json && tsc -p tsconfig.isolate.json",
|
|
36
36
|
"prepublishOnly": "npm run tsc:publish",
|
|
37
37
|
"prepack": "clean-package",
|
|
38
38
|
"postpack": "clean-package restore && npm run clean"
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"@babel/plugin-proposal-decorators": "^7.29.0",
|
|
42
42
|
"@babel/plugin-transform-class-properties": "^7.28.6",
|
|
43
43
|
"@babel/plugin-transform-typescript": "^7.28.6",
|
|
44
|
-
"@cabloy/cli": "^3.1.
|
|
45
|
-
"@cabloy/dotenv": "^1.2.
|
|
46
|
-
"@cabloy/extend": "^3.2.
|
|
47
|
-
"@cabloy/module-glob": "^5.3.
|
|
44
|
+
"@cabloy/cli": "^3.1.17",
|
|
45
|
+
"@cabloy/dotenv": "^1.2.8",
|
|
46
|
+
"@cabloy/extend": "^3.2.8",
|
|
47
|
+
"@cabloy/module-glob": "^5.3.13",
|
|
48
48
|
"@cabloy/module-info": "^2.0.0",
|
|
49
|
-
"@cabloy/utils": "^2.1.
|
|
49
|
+
"@cabloy/utils": "^2.1.22",
|
|
50
50
|
"@cabloy/word-utils": "^2.1.8",
|
|
51
51
|
"@lcov-viewer/cli": "^1.3.0",
|
|
52
52
|
"@rollup/plugin-alias": "^5.1.1",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"ts-node-maintained": "^10.9.6",
|
|
74
74
|
"urllib": "^4.9.0",
|
|
75
75
|
"uuid": "^11.1.0",
|
|
76
|
-
"vona-core": "^5.1.
|
|
76
|
+
"vona-core": "^5.1.20",
|
|
77
77
|
"why-is-node-running": "^3.2.2",
|
|
78
78
|
"yargs-parser": "^22.0.0"
|
|
79
79
|
}
|