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

View File

@@ -14,7 +14,6 @@ export function generateReproducibleCommand(config: ProjectConfig): string {
flags.push("-y"); flags.push("-y");
} }
// Handle database flag
if (config.database !== DEFAULT_CONFIG.database) { if (config.database !== DEFAULT_CONFIG.database) {
if (config.database === "none") { if (config.database === "none") {
flags.push("--no-database"); 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) { if (config.database !== "none" && config.orm !== DEFAULT_CONFIG.orm) {
flags.push(config.orm === "drizzle" ? "--drizzle" : "--prisma"); flags.push(config.orm === "drizzle" ? "--drizzle" : "--prisma");
} }

View File

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