@navios/commander 0.5.0
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/LICENSE +7 -0
- package/README.md +242 -0
- package/dist/src/commander.application.d.mts +29 -0
- package/dist/src/commander.application.d.mts.map +1 -0
- package/dist/src/commander.factory.d.mts +8 -0
- package/dist/src/commander.factory.d.mts.map +1 -0
- package/dist/src/decorators/cli-module.decorator.d.mts +7 -0
- package/dist/src/decorators/cli-module.decorator.d.mts.map +1 -0
- package/dist/src/decorators/command.decorator.d.mts +8 -0
- package/dist/src/decorators/command.decorator.d.mts.map +1 -0
- package/dist/src/decorators/index.d.mts +3 -0
- package/dist/src/decorators/index.d.mts.map +1 -0
- package/dist/src/index.d.mts +8 -0
- package/dist/src/index.d.mts.map +1 -0
- package/dist/src/interfaces/cli-module.interface.d.mts +5 -0
- package/dist/src/interfaces/cli-module.interface.d.mts.map +1 -0
- package/dist/src/interfaces/command-handler.interface.d.mts +4 -0
- package/dist/src/interfaces/command-handler.interface.d.mts.map +1 -0
- package/dist/src/interfaces/index.d.mts +3 -0
- package/dist/src/interfaces/index.d.mts.map +1 -0
- package/dist/src/interfaces/module.interface.d.mts +5 -0
- package/dist/src/interfaces/module.interface.d.mts.map +1 -0
- package/dist/src/metadata/cli-module.metadata.d.mts +11 -0
- package/dist/src/metadata/cli-module.metadata.d.mts.map +1 -0
- package/dist/src/metadata/command.metadata.d.mts +12 -0
- package/dist/src/metadata/command.metadata.d.mts.map +1 -0
- package/dist/src/metadata/index.d.mts +3 -0
- package/dist/src/metadata/index.d.mts.map +1 -0
- package/dist/src/services/cli-parser.service.d.mts +44 -0
- package/dist/src/services/cli-parser.service.d.mts.map +1 -0
- package/dist/src/services/index.d.mts +3 -0
- package/dist/src/services/index.d.mts.map +1 -0
- package/dist/src/services/module-loader.service.d.mts +33 -0
- package/dist/src/services/module-loader.service.d.mts.map +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/tsup.config.d.mts +3 -0
- package/dist/tsup.config.d.mts.map +1 -0
- package/dist/vitest.config.d.mts +3 -0
- package/dist/vitest.config.d.mts.map +1 -0
- package/lib/_tsup-dts-rollup.d.mts +456 -0
- package/lib/_tsup-dts-rollup.d.ts +456 -0
- package/lib/index.d.mts +98 -0
- package/lib/index.d.ts +98 -0
- package/lib/index.js +541 -0
- package/lib/index.js.map +1 -0
- package/lib/index.mjs +524 -0
- package/lib/index.mjs.map +1 -0
- package/package.json +40 -0
- package/project.json +66 -0
- package/src/__tests__/commander.factory.e2e.spec.mts +965 -0
- package/src/commander.application.mts +159 -0
- package/src/commander.factory.mts +20 -0
- package/src/decorators/cli-module.decorator.mts +39 -0
- package/src/decorators/command.decorator.mts +29 -0
- package/src/decorators/index.mts +2 -0
- package/src/index.mts +7 -0
- package/src/interfaces/command-handler.interface.mts +3 -0
- package/src/interfaces/index.mts +2 -0
- package/src/interfaces/module.interface.mts +4 -0
- package/src/metadata/cli-module.metadata.mts +54 -0
- package/src/metadata/command.metadata.mts +54 -0
- package/src/metadata/index.mts +2 -0
- package/src/services/__tests__/cli-parser.service.spec.mts +404 -0
- package/src/services/cli-parser.service.mts +231 -0
- package/src/services/index.mts +2 -0
- package/src/services/module-loader.service.mts +120 -0
- package/tsconfig.json +18 -0
- package/tsconfig.lib.json +8 -0
- package/tsconfig.spec.json +13 -0
- package/tsup.config.mts +12 -0
- package/vitest.config.mts +9 -0
package/project.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@navios/commander",
|
|
3
|
+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
4
|
+
"sourceRoot": "packages/commander/src",
|
|
5
|
+
"prefix": "commander",
|
|
6
|
+
"tags": [],
|
|
7
|
+
"projectType": "library",
|
|
8
|
+
"targets": {
|
|
9
|
+
"check": {
|
|
10
|
+
"executor": "nx:run-commands",
|
|
11
|
+
"outputs": ["{projectRoot}/dist"],
|
|
12
|
+
"inputs": [
|
|
13
|
+
"^projectSources",
|
|
14
|
+
"projectSources",
|
|
15
|
+
"{projectRoot}/tsconfig.json",
|
|
16
|
+
"{projectRoot}/tsconfig.lib.json"
|
|
17
|
+
],
|
|
18
|
+
"options": {
|
|
19
|
+
"command": ["tsc -b"],
|
|
20
|
+
"cwd": "packages/commander"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"lint": {
|
|
24
|
+
"executor": "nx:run-commands",
|
|
25
|
+
"inputs": ["^projectSources", "project"],
|
|
26
|
+
"options": {
|
|
27
|
+
"command": "oxlint --fix",
|
|
28
|
+
"cwd": "packages/commander"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"test:ci": {
|
|
32
|
+
"executor": "nx:run-commands",
|
|
33
|
+
"inputs": ["^projectSources", "project"],
|
|
34
|
+
"options": {
|
|
35
|
+
"command": "vitest run",
|
|
36
|
+
"cwd": "packages/commander"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"build": {
|
|
40
|
+
"executor": "nx:run-commands",
|
|
41
|
+
"inputs": ["projectSources", "{projectRoot}/tsup.config.mts"],
|
|
42
|
+
"outputs": ["{projectRoot}/lib"],
|
|
43
|
+
"dependsOn": ["check", "test:ci", "lint"],
|
|
44
|
+
"options": {
|
|
45
|
+
"command": "tsup",
|
|
46
|
+
"cwd": "packages/commander"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"publish": {
|
|
50
|
+
"executor": "nx:run-commands",
|
|
51
|
+
"dependsOn": ["build"],
|
|
52
|
+
"options": {
|
|
53
|
+
"command": "yarn npm publish --access public",
|
|
54
|
+
"cwd": "packages/commander"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"publish:next": {
|
|
58
|
+
"executor": "nx:run-commands",
|
|
59
|
+
"dependsOn": ["build"],
|
|
60
|
+
"options": {
|
|
61
|
+
"command": "yarn npm publish --access public --tag next",
|
|
62
|
+
"cwd": "packages/commander"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|