@aetherionfw/cli 1.1.0 → 1.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/dist/commands/docs.js +6 -1
- package/dist/commands/init.js +1 -0
- package/package.json +5 -4
package/dist/commands/docs.js
CHANGED
|
@@ -44,6 +44,7 @@ const ora_1 = __importDefault(require("ora"));
|
|
|
44
44
|
const docs_1 = require("@aetherionfw/docs");
|
|
45
45
|
const path = __importStar(require("path"));
|
|
46
46
|
const fs = __importStar(require("fs"));
|
|
47
|
+
const open_1 = __importDefault(require("open"));
|
|
47
48
|
async function docsCommand(options) {
|
|
48
49
|
const isServe = options.serve;
|
|
49
50
|
const spinner = (0, ora_1.default)('Preparing OpenAPI documentation...').start();
|
|
@@ -61,13 +62,17 @@ async function docsCommand(options) {
|
|
|
61
62
|
else {
|
|
62
63
|
spinner.warn(chalk_1.default.yellow('src/app.module.ts not found. API documentation might be empty.'));
|
|
63
64
|
}
|
|
65
|
+
// Always generate the static docs
|
|
66
|
+
(0, docs_1.generateStaticDocs)(process.cwd());
|
|
64
67
|
if (isServe) {
|
|
65
68
|
spinner.succeed(chalk_1.default.green('Starting Scalar API Reference Server...'));
|
|
66
69
|
(0, docs_1.startScalarServer)(3000);
|
|
70
|
+
const url = 'http://localhost:3000/docs';
|
|
71
|
+
console.log(chalk_1.default.cyan(`\nOpening browser at ${url}`));
|
|
72
|
+
await (0, open_1.default)(url);
|
|
67
73
|
// Keep process alive
|
|
68
74
|
}
|
|
69
75
|
else {
|
|
70
|
-
(0, docs_1.generateStaticDocs)(process.cwd());
|
|
71
76
|
spinner.succeed(chalk_1.default.green('Documentation generated at openapi.json'));
|
|
72
77
|
}
|
|
73
78
|
}
|
package/dist/commands/init.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aetherionfw/cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "CLI for Aetherion Framework",
|
|
5
5
|
"bin": {
|
|
6
6
|
"aetherion": "dist/bin/aetherion.js"
|
|
@@ -11,17 +11,18 @@
|
|
|
11
11
|
"chalk": "^4.1.2",
|
|
12
12
|
"commander": "^11.0.0",
|
|
13
13
|
"fs-extra": "^11.1.1",
|
|
14
|
+
"open": "^8.4.2",
|
|
14
15
|
"ora": "^5.4.1",
|
|
15
16
|
"ts-node": "^10.9.2",
|
|
16
|
-
"@aetherionfw/docs": "1.
|
|
17
|
+
"@aetherionfw/docs": "1.1.1"
|
|
17
18
|
},
|
|
18
19
|
"devDependencies": {
|
|
19
20
|
"@types/fs-extra": "^11.0.1",
|
|
20
21
|
"@types/node": "^20.0.0",
|
|
21
22
|
"typescript": "^5.5.4",
|
|
22
23
|
"vitest": "^2.0.5",
|
|
23
|
-
"@aetherionfw/
|
|
24
|
-
"@aetherionfw/
|
|
24
|
+
"@aetherionfw/core": "1.1.1",
|
|
25
|
+
"@aetherionfw/infra": "1.1.1"
|
|
25
26
|
},
|
|
26
27
|
"publishConfig": {
|
|
27
28
|
"access": "public"
|