UNPKG

@reliverse/rse

Version:

@reliverse/rse is your all-in-one companion for bootstrapping and improving any kind of projects (especially web apps built with frameworks like Next.js) — whether you're kicking off something new or upgrading an existing app. It is also a little AI-power

31 lines (30 loc) 893 B
import { re } from "@reliverse/relico"; import { selectPrompt } from "@reliverse/rempts"; const KNOWN_APPS = ["relivator"]; const KNOWN_LIBS = ["recme", "reinit"]; export async function askAppOrLib(projectName) { if (KNOWN_APPS.includes(projectName)) { return "app"; } if (KNOWN_LIBS.includes(projectName)) { return "lib"; } const type = await selectPrompt({ title: "What type of project are you creating?", content: `This will determine the config files to be generated. If you're unsure, choose ${re.bold("Web app")}. No worries\u2014you can always change it later by editing the project's rseg.`, options: [ { label: "Web app", value: "app", hint: "Includes desktop and mobile apps" }, { label: "Library", value: "lib", hint: "Includes clis and extensions" } ] }); return type; }