mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
feat(web): add og image
This commit is contained in:
@@ -22,14 +22,14 @@ export async function addAddonsToProject(
|
||||
const isBetterTStack = await isBetterTStackProject(projectDir);
|
||||
if (!isBetterTStack) {
|
||||
exitWithError(
|
||||
"This doesn't appear to be a Better-T Stack project. Please run this command from the root of a Better-T Stack project.",
|
||||
"This doesn't appear to be a Better-T-Stack project. Please run this command from the root of a Better-T-Stack project.",
|
||||
);
|
||||
}
|
||||
|
||||
const detectedConfig = await detectProjectConfig(projectDir);
|
||||
if (!detectedConfig) {
|
||||
exitWithError(
|
||||
"Could not detect the project configuration. Please ensure this is a valid Better-T Stack project.",
|
||||
"Could not detect the project configuration. Please ensure this is a valid Better-T-Stack project.",
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -31,14 +31,14 @@ export async function addDeploymentToProject(
|
||||
const isBetterTStack = await isBetterTStackProject(projectDir);
|
||||
if (!isBetterTStack) {
|
||||
exitWithError(
|
||||
"This doesn't appear to be a Better-T Stack project. Please run this command from the root of a Better-T Stack project.",
|
||||
"This doesn't appear to be a Better-T-Stack project. Please run this command from the root of a Better-T-Stack project.",
|
||||
);
|
||||
}
|
||||
|
||||
const detectedConfig = await detectProjectConfig(projectDir);
|
||||
if (!detectedConfig) {
|
||||
exitWithError(
|
||||
"Could not detect the project configuration. Please ensure this is a valid Better-T Stack project.",
|
||||
"Could not detect the project configuration. Please ensure this is a valid Better-T-Stack project.",
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ export async function createProjectHandler(
|
||||
if (input.renderTitle !== false) {
|
||||
renderTitle();
|
||||
}
|
||||
intro(pc.magenta("Creating a new Better-T Stack project"));
|
||||
intro(pc.magenta("Creating a new Better-T-Stack project"));
|
||||
|
||||
if (input.yolo) {
|
||||
consola.fatal("YOLO mode enabled - skipping checks. Things may break!");
|
||||
@@ -265,7 +265,7 @@ export async function addAddonsHandler(input: AddInput) {
|
||||
|
||||
if (!detectedConfig) {
|
||||
exitWithError(
|
||||
"Could not detect project configuration. Please ensure this is a valid Better-T Stack project.",
|
||||
"Could not detect project configuration. Please ensure this is a valid Better-T-Stack project.",
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -187,7 +187,7 @@ export async function displayPostInstallInstructions(
|
||||
tazeCommand,
|
||||
)}\n\n`;
|
||||
output += `${pc.bold(
|
||||
"Like Better-T Stack?",
|
||||
"Like Better-T-Stack?",
|
||||
)} Please consider giving us a star\n on GitHub:\n`;
|
||||
output += pc.cyan("https://github.com/AmanVarshney01/create-better-t-stack");
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ const t = trpcServer.initTRPC.create();
|
||||
export const router = t.router({
|
||||
init: t.procedure
|
||||
.meta({
|
||||
description: "Create a new Better-T Stack project",
|
||||
description: "Create a new Better-T-Stack project",
|
||||
default: true,
|
||||
negateBooleans: true,
|
||||
})
|
||||
@@ -117,7 +117,7 @@ export const router = t.router({
|
||||
add: t.procedure
|
||||
.meta({
|
||||
description:
|
||||
"Add addons or deployment configurations to an existing Better-T Stack project",
|
||||
"Add addons or deployment configurations to an existing Better-T-Stack project",
|
||||
})
|
||||
.input(
|
||||
z.tuple([
|
||||
@@ -140,11 +140,11 @@ export const router = t.router({
|
||||
await addAddonsHandler(options);
|
||||
}),
|
||||
sponsors: t.procedure
|
||||
.meta({ description: "Show Better-T Stack sponsors" })
|
||||
.meta({ description: "Show Better-T-Stack sponsors" })
|
||||
.mutation(async () => {
|
||||
try {
|
||||
renderTitle();
|
||||
intro(pc.magenta("Better-T Stack Sponsors"));
|
||||
intro(pc.magenta("Better-T-Stack Sponsors"));
|
||||
const sponsors = await fetchSponsors();
|
||||
displaySponsors(sponsors);
|
||||
} catch (error) {
|
||||
@@ -152,7 +152,7 @@ export const router = t.router({
|
||||
}
|
||||
}),
|
||||
docs: t.procedure
|
||||
.meta({ description: "Open Better-T Stack documentation" })
|
||||
.meta({ description: "Open Better-T-Stack documentation" })
|
||||
.mutation(async () => {
|
||||
const DOCS_URL = "https://better-t-stack.dev/docs";
|
||||
try {
|
||||
@@ -186,7 +186,7 @@ export function createBtsCli() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize a new Better-T Stack project
|
||||
* Initialize a new Better-T-Stack project
|
||||
*
|
||||
* @example CLI usage:
|
||||
* ```bash
|
||||
|
||||
Reference in New Issue
Block a user