mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
Squash merge beta into main
This commit is contained in:
@@ -4,10 +4,10 @@ import { DEFAULT_CONFIG } from "../constants";
|
||||
import type { ProjectAddons, ProjectFrontend } from "../types";
|
||||
|
||||
export async function getAddonsChoice(
|
||||
Addons?: ProjectAddons[],
|
||||
addons?: ProjectAddons[],
|
||||
frontends?: ProjectFrontend[],
|
||||
): Promise<ProjectAddons[]> {
|
||||
if (Addons !== undefined) return Addons;
|
||||
if (addons !== undefined) return addons;
|
||||
|
||||
const hasCompatibleWebFrontend =
|
||||
frontends?.includes("react-router") ||
|
||||
@@ -50,7 +50,7 @@ export async function getAddonsChoice(
|
||||
];
|
||||
|
||||
const options = hasCompatibleWebFrontend
|
||||
? [...webAddonOptions, ...addonOptions]
|
||||
? [...addonOptions, ...webAddonOptions]
|
||||
: addonOptions;
|
||||
|
||||
const initialValues = DEFAULT_CONFIG.addons.filter(
|
||||
|
||||
@@ -22,11 +22,6 @@ export async function getApiChoice(
|
||||
label: "oRPC",
|
||||
hint: "End-to-end type-safe APIs that adhere to OpenAPI standards",
|
||||
},
|
||||
{
|
||||
value: "none" as const,
|
||||
label: "None",
|
||||
hint: "No API integration (skip API setup)",
|
||||
},
|
||||
];
|
||||
|
||||
if (includesNative) {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { cancel, confirm, isCancel, log } from "@clack/prompts";
|
||||
import { cancel, confirm, isCancel } from "@clack/prompts";
|
||||
import pc from "picocolors";
|
||||
import { DEFAULT_CONFIG } from "../constants";
|
||||
import type { ProjectFrontend } from "../types";
|
||||
|
||||
export async function getAuthChoice(
|
||||
auth: boolean | undefined,
|
||||
|
||||
@@ -19,7 +19,7 @@ export async function getDatabaseChoice(
|
||||
{
|
||||
value: "sqlite",
|
||||
label: "SQLite",
|
||||
hint: "lightweight, server-less, embedded relational database management system",
|
||||
hint: "lightweight, server-less, embedded relational database",
|
||||
},
|
||||
{
|
||||
value: "postgres",
|
||||
|
||||
@@ -2,6 +2,7 @@ import { cancel, isCancel, multiselect } from "@clack/prompts";
|
||||
import pc from "picocolors";
|
||||
import { DEFAULT_CONFIG } from "../constants";
|
||||
import type {
|
||||
ProjectApi,
|
||||
ProjectBackend,
|
||||
ProjectDatabase,
|
||||
ProjectExamples,
|
||||
|
||||
Reference in New Issue
Block a user