@apex-stack/core 0.1.12 → 0.1.13
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.
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
// src/ui.ts
|
|
2
|
+
import { readFileSync } from "fs";
|
|
3
|
+
import { fileURLToPath } from "url";
|
|
2
4
|
var TTY = Boolean(process.stdout.isTTY) && !process.env.NO_COLOR && process.env.TERM !== "dumb";
|
|
3
5
|
var RESET = "\x1B[0m";
|
|
6
|
+
var VERSION = (() => {
|
|
7
|
+
try {
|
|
8
|
+
return JSON.parse(readFileSync(fileURLToPath(new URL("../package.json", import.meta.url)), "utf8")).version || "";
|
|
9
|
+
} catch {
|
|
10
|
+
return "";
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
4
13
|
function truecolor(r, g, b, s) {
|
|
5
14
|
return TTY ? `\x1B[38;2;${r};${g};${b}m${s}${RESET}` : s;
|
|
6
15
|
}
|
|
@@ -40,9 +49,10 @@ function banner(subtitle = "The full-stack, AI-native meta-framework for Alpine.
|
|
|
40
49
|
}
|
|
41
50
|
return out + RESET;
|
|
42
51
|
});
|
|
52
|
+
const ver = VERSION ? `${color.cyan(`v${VERSION}`)} ${color.gray("\xB7")} ` : "";
|
|
43
53
|
return `
|
|
44
54
|
${rows.join("\n")}
|
|
45
|
-
${color.gray(subtitle)}
|
|
55
|
+
${ver}${color.gray(subtitle)}
|
|
46
56
|
`;
|
|
47
57
|
}
|
|
48
58
|
var FRAMES = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
|
|
@@ -86,6 +96,7 @@ function ready(rows) {
|
|
|
86
96
|
}
|
|
87
97
|
|
|
88
98
|
export {
|
|
99
|
+
VERSION,
|
|
89
100
|
color,
|
|
90
101
|
banner,
|
|
91
102
|
spinner,
|
package/dist/cli.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
+
VERSION,
|
|
3
4
|
banner,
|
|
4
5
|
color,
|
|
5
6
|
spinner
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7E5ZQ6UH.js";
|
|
7
8
|
|
|
8
9
|
// src/cli.ts
|
|
9
10
|
import { defineCommand as defineCommand2, runMain } from "citty";
|
|
@@ -103,11 +104,12 @@ var COMMANDS = [
|
|
|
103
104
|
var main = defineCommand2({
|
|
104
105
|
meta: {
|
|
105
106
|
name: "apex",
|
|
107
|
+
version: VERSION,
|
|
106
108
|
description: "The full-stack meta-framework for Alpine.js"
|
|
107
109
|
},
|
|
108
110
|
subCommands: {
|
|
109
111
|
new: newCommand,
|
|
110
|
-
dev: () => import("./dev-
|
|
112
|
+
dev: () => import("./dev-BIPK7O5N.js").then((m) => m.devCommand),
|
|
111
113
|
build: () => import("./build-QRHQUUZC.js").then((m) => m.buildCommand),
|
|
112
114
|
start: () => import("./start-VJJXI4W3.js").then((m) => m.startCommand),
|
|
113
115
|
make: () => import("./make-4LINTKZH.js").then((m) => m.makeCommand),
|