create-better-fullstack 2.0.2 → 2.1.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/dist/{add-handler-BPAZM8Zo.mjs → add-handler-BjTmOwEN.mjs} +11 -9
- package/dist/addons-setup-CSmj5ClW.mjs +6 -0
- package/dist/{addons-setup-HSghQS7c.mjs → addons-setup-uSvqHagW.mjs} +4 -83
- package/dist/{bts-config-Bg1Qea9Y.mjs → bts-config-InNcw1aJ.mjs} +90 -68
- package/dist/cli.mjs +2 -2
- package/dist/doctor-Bm9qvkya.mjs +281 -0
- package/dist/errors-ns_o2OKg.mjs +86 -0
- package/dist/generated-checks-CUhFFfVo.mjs +91 -0
- package/dist/index.d.mts +100 -41
- package/dist/index.mjs +10 -6
- package/dist/{install-dependencies-D6-GO3BZ.mjs → install-dependencies-CDjTNvIV.mjs} +126 -49
- package/dist/{mcp-58r70ZcL.mjs → mcp-BaLHDRdC.mjs} +1 -1
- package/dist/mcp-entry.mjs +601 -137
- package/dist/render-title-zvyKC1ej.mjs +34 -0
- package/dist/{run-DQlymC4z.mjs → run-Cqy-n1iT.mjs} +586 -654
- package/dist/run-DYWSKowD.mjs +10 -0
- package/dist/templates-B351F1yX.mjs +489 -0
- package/package.json +7 -6
- package/dist/addons-setup-CV5uZyhH.mjs +0 -5
- package/dist/run-QRBymn-p.mjs +0 -7
- /package/dist/{update-deps-CLebIM70.mjs → update-deps-D5OG0KmJ.mjs} +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import gradient from "gradient-string";
|
|
3
|
+
|
|
4
|
+
//#region src/utils/render-title.ts
|
|
5
|
+
const TITLE_TEXT = `
|
|
6
|
+
██████╗ ███████╗████████╗████████╗███████╗██████╗
|
|
7
|
+
██╔══██╗██╔════╝╚══██╔══╝╚══██╔══╝██╔════╝██╔══██╗
|
|
8
|
+
██████╔╝█████╗ ██║ ██║ █████╗ ██████╔╝
|
|
9
|
+
██╔══██╗██╔══╝ ██║ ██║ ██╔══╝ ██╔══██╗
|
|
10
|
+
██████╔╝███████╗ ██║ ██║ ███████╗██║ ██║
|
|
11
|
+
╚═════╝ ╚══════╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝
|
|
12
|
+
|
|
13
|
+
███████╗██╗ ██╗██╗ ██╗ ███████╗████████╗ █████╗ ██████╗██╗ ██╗
|
|
14
|
+
██╔════╝██║ ██║██║ ██║ ██╔════╝╚══██╔══╝██╔══██╗██╔════╝██║ ██╔╝
|
|
15
|
+
█████╗ ██║ ██║██║ ██║ ███████╗ ██║ ███████║██║ █████╔╝
|
|
16
|
+
██╔══╝ ██║ ██║██║ ██║ ╚════██║ ██║ ██╔══██║██║ ██╔═██╗
|
|
17
|
+
██║ ╚██████╔╝███████╗███████╗███████║ ██║ ██║ ██║╚██████╗██║ ██╗
|
|
18
|
+
╚═╝ ╚═════╝ ╚══════╝╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝
|
|
19
|
+
`;
|
|
20
|
+
const monochromeTheme = {
|
|
21
|
+
white: "#FFFFFF",
|
|
22
|
+
lightGray: "#E5E5E5",
|
|
23
|
+
gray: "#A3A3A3",
|
|
24
|
+
darkGray: "#737373"
|
|
25
|
+
};
|
|
26
|
+
const renderTitle = () => {
|
|
27
|
+
const terminalWidth = process.stdout.columns || 80;
|
|
28
|
+
const titleLines = TITLE_TEXT.split("\n");
|
|
29
|
+
if (terminalWidth < Math.max(...titleLines.map((line) => line.length))) console.log(gradient(Object.values(monochromeTheme)).multiline(`Better Fullstack`));
|
|
30
|
+
else console.log(gradient(Object.values(monochromeTheme)).multiline(TITLE_TEXT));
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
export { renderTitle as t };
|