update ascii art

This commit is contained in:
Aman Varshney
2025-02-20 21:32:38 +05:30
parent ec71d8941c
commit ba771041cb
4 changed files with 19 additions and 23 deletions

View File

@@ -0,0 +1,5 @@
---
"create-better-t-stack": patch
---
update ascii art

View File

@@ -4,7 +4,7 @@ import pc from "picocolors";
import { DEFAULT_CONFIG } from "./constants";
import { createProject } from "./helpers/create-project";
import { gatherConfig } from "./prompts/config-prompts";
import type { PackageManager, ProjectConfig, ProjectFeature } from "./types";
import type { ProjectConfig, ProjectFeature } from "./types";
import { displayConfig } from "./utils/display-config";
import { generateReproducibleCommand } from "./utils/generate-reproducible-command";
import { getVersion } from "./utils/get-version";
@@ -20,7 +20,6 @@ const program = new Command();
async function main() {
const s = spinner();
try {
process.stdout.write("\x1Bc");
renderTitle();
intro(pc.magenta("Creating a new Better-T-Stack project"));
program

View File

@@ -14,7 +14,6 @@ export function generateReproducibleCommand(config: ProjectConfig): string {
flags.push("-y");
}
// Handle database flag
if (config.database !== DEFAULT_CONFIG.database) {
if (config.database === "none") {
flags.push("--no-database");
@@ -23,7 +22,6 @@ export function generateReproducibleCommand(config: ProjectConfig): string {
}
}
// Handle ORM flag only if database is not "none"
if (config.database !== "none" && config.orm !== DEFAULT_CONFIG.orm) {
flags.push(config.orm === "drizzle" ? "--drizzle" : "--prisma");
}

View File

@@ -1,28 +1,22 @@
import gradient from "gradient-string";
export const TITLE_TEXT = `
╔════════════════════════════════════════════════════════════
║ ║
║ ██████╗ ███████╗████████╗████████╗███████╗██████╗ ║
██╔══██╗██╔════╝╚══██╔══╝╚══██╔══╝██╔════╝██╔══██╗
██████╔╝█████╗ ██║ ██║ █████╗ █████╔╝
║ ██╔══██╗██╔══╝ ██║ ██║ ██╔══╝ ██╔══██╗ ║
║ ██████╔╝███████╗ ██║ ██║ ███████╗██║ ██║ ║
║ ╚═════╝ ╚══════╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝ ║
║ ║
███████╗ ███████╗████████╗ █████╗ ██████╗██╗ ██╗ ║
║ ╚══██╔══╝ ██╔════╝╚══██╔══██╔══██╗██╔═══╝██║ ██╔╝
██║ ███████ ██║ ███████║███████╔╝
║ ██║ ╚════██║ ██║ ██╔══██║██║ ██╔═██╗ ║
║ ██║ ███████║ ██║ ██║ ██║╚██████╗██║ ██╗ ║
║ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ║
║ ║
╚════════════════════════════════════════════════════════════╝
██████╗ ███████╗████████╗████████╗███████╗██████
██╔══██╗██╔════╝╚══██╔══╝╚══██╔══╝██╔════╝██╔══██╗
██████╔╝█████╗ ██║ ██║ █████╗ ██████╔╝
██╔══██╗██╔══╝ ██║ ██║ ██╔══╝ ██╔══██╗
██████╔╝███████╗ ██║ ██║ █████████║ ██
╚═════╝ ╚══════╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝
████████╗ ███████╗████████╗ █████╗ ██████╗██╗ ██╗
╚══██╔══╝ ██╔════╝╚══██╔══╝██╔══██╗██╔════╝██║ ██╔╝
██ ███████╗ ██║ ███████║██║ █████╔╝
██ ╚════██║ ██║ ██╔══██║██║ ██╔═██╗
██║ ███████ ██║ ████║███████║ ██╗
╚═╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝
`;
const catppuccinTheme = {
rosewater: "#F5E0DC",
flamingo: "#F2CDCD",
pink: "#F5C2E7",
mauve: "#CBA6F7",
red: "#F38BA8",