mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
Update cli prompts
This commit is contained in:
@@ -44,7 +44,7 @@ export async function getAddonsChoice(
|
||||
);
|
||||
|
||||
const response = await multiselect<ProjectAddons>({
|
||||
message: "Which Addons would you like to add?",
|
||||
message: "Select addons",
|
||||
options,
|
||||
initialValues,
|
||||
required: false,
|
||||
|
||||
@@ -24,7 +24,7 @@ export async function getAuthChoice(
|
||||
if (auth !== undefined) return auth;
|
||||
|
||||
const response = await confirm({
|
||||
message: "Would you like to add authentication with Better-Auth?",
|
||||
message: "Add authentication with Better-Auth?",
|
||||
initialValue: DEFAULT_CONFIG.auth,
|
||||
});
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ export async function getBackendFrameworkChoice(
|
||||
if (backendFramework !== undefined) return backendFramework;
|
||||
|
||||
const response = await select<ProjectBackend>({
|
||||
message: "Which backend framework would you like to use?",
|
||||
message: "Select backend framework",
|
||||
options: [
|
||||
{
|
||||
value: "hono",
|
||||
@@ -19,7 +19,7 @@ export async function getBackendFrameworkChoice(
|
||||
{
|
||||
value: "elysia",
|
||||
label: "Elysia",
|
||||
hint: "TypeScript framework with end-to-end type safety)",
|
||||
hint: "Ergonomic web framework for building backend servers",
|
||||
},
|
||||
],
|
||||
initialValue: DEFAULT_CONFIG.backend,
|
||||
|
||||
@@ -9,7 +9,7 @@ export async function getDatabaseChoice(
|
||||
if (database !== undefined) return database;
|
||||
|
||||
const response = await select<ProjectDatabase>({
|
||||
message: "Which database would you like to use?",
|
||||
message: "Select database",
|
||||
options: [
|
||||
{
|
||||
value: "none",
|
||||
|
||||
@@ -25,7 +25,7 @@ export async function getExamplesChoice(
|
||||
|
||||
if (backend === "elysia") {
|
||||
response = await multiselect<ProjectExamples>({
|
||||
message: "Which examples would you like to include?",
|
||||
message: "Include examples",
|
||||
options: [
|
||||
{
|
||||
value: "todo",
|
||||
@@ -40,7 +40,7 @@ export async function getExamplesChoice(
|
||||
|
||||
if (backend === "hono") {
|
||||
response = await multiselect<ProjectExamples>({
|
||||
message: "Which examples would you like to include?",
|
||||
message: "Include examples",
|
||||
options: [
|
||||
{
|
||||
value: "todo",
|
||||
|
||||
@@ -9,7 +9,7 @@ export async function getFrontendChoice(
|
||||
if (frontendOptions !== undefined) return frontendOptions;
|
||||
|
||||
const response = await multiselect<ProjectFrontend>({
|
||||
message: "Which frontend applications would you like to create?",
|
||||
message: "Choose frontends",
|
||||
options: [
|
||||
{
|
||||
value: "web",
|
||||
|
||||
@@ -6,7 +6,7 @@ export async function getGitChoice(git?: boolean): Promise<boolean> {
|
||||
if (git !== undefined) return git;
|
||||
|
||||
const response = await confirm({
|
||||
message: "Initialize a new git repository?",
|
||||
message: "Initialize git repository?",
|
||||
initialValue: DEFAULT_CONFIG.git,
|
||||
});
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ export async function getNoInstallChoice(
|
||||
if (noInstall !== undefined) return noInstall;
|
||||
|
||||
const response = await confirm({
|
||||
message: "Do you want to install project dependencies?",
|
||||
message: "Install dependencies?",
|
||||
initialValue: !DEFAULT_CONFIG.noInstall,
|
||||
});
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ export async function getORMChoice(
|
||||
if (orm !== undefined) return orm;
|
||||
|
||||
const response = await select<ProjectOrm>({
|
||||
message: "Which ORM would you like to use?",
|
||||
message: "Select ORM",
|
||||
options: [
|
||||
{
|
||||
value: "drizzle",
|
||||
|
||||
@@ -11,7 +11,7 @@ export async function getPackageManagerChoice(
|
||||
const detectedPackageManager = getUserPkgManager();
|
||||
|
||||
const response = await select<ProjectPackageManager>({
|
||||
message: "Which package manager do you want to use?",
|
||||
message: "Choose package manager",
|
||||
options: [
|
||||
{ value: "npm", label: "npm", hint: "Node Package Manager" },
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ export async function getRuntimeChoice(
|
||||
if (runtime !== undefined) return runtime;
|
||||
|
||||
const response = await select<ProjectRuntime>({
|
||||
message: "Which runtime would you like to use?",
|
||||
message: "Select runtime",
|
||||
options: [
|
||||
{
|
||||
value: "bun",
|
||||
|
||||
@@ -6,7 +6,7 @@ export async function getTursoSetupChoice(turso?: boolean): Promise<boolean> {
|
||||
if (turso !== undefined) return turso;
|
||||
|
||||
const response = await confirm({
|
||||
message: "Set up a Turso database for this project?",
|
||||
message: "Set up Turso database?",
|
||||
initialValue: DEFAULT_CONFIG.turso,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user