mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
fix: post installations strings width (#511)
This commit is contained in:
15
.autorc
15
.autorc
@@ -4,7 +4,9 @@
|
|||||||
"npm",
|
"npm",
|
||||||
{
|
{
|
||||||
"forcePublish": false,
|
"forcePublish": false,
|
||||||
"subPackageChangelogs": true
|
"subPackageChangelogs": true,
|
||||||
|
"exact": true,
|
||||||
|
"monorepoChangelog": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"all-contributors",
|
"all-contributors",
|
||||||
@@ -17,12 +19,23 @@
|
|||||||
"name": "Aman Varshney",
|
"name": "Aman Varshney",
|
||||||
"email": "amanvarshney.work@gmail.com",
|
"email": "amanvarshney.work@gmail.com",
|
||||||
"baseBranch": "main",
|
"baseBranch": "main",
|
||||||
|
"prereleaseBranches": ["next"],
|
||||||
|
"next": {
|
||||||
|
"message": "🎉 This PR is included in version %NEXT_PATCH_VERSION% of this package. The release is available on [npm](https://www.npmjs.com/package/create-better-t-stack)!"
|
||||||
|
},
|
||||||
"labels": [
|
"labels": [
|
||||||
{
|
{
|
||||||
"name": "skip-release",
|
"name": "skip-release",
|
||||||
"changelogTitle": "⚠️ Pushed to `main`",
|
"changelogTitle": "⚠️ Pushed to `main`",
|
||||||
"description": "Skip a release and only update the changelog",
|
"description": "Skip a release and only update the changelog",
|
||||||
"releaseType": "skip"
|
"releaseType": "skip"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "cli",
|
||||||
|
"changelogTitle": "🛠️ CLI Changes",
|
||||||
|
"description": "Changes to the CLI tool",
|
||||||
|
"releaseType": "patch",
|
||||||
|
"color": "#0366d6"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
4
.github/workflows/release.yaml
vendored
4
.github/workflows/release.yaml
vendored
@@ -9,7 +9,9 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
|
if: >-
|
||||||
|
!contains(github.event.head_commit.message, 'ci skip') &&
|
||||||
|
!contains(github.event.head_commit.message, 'skip ci')
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
@@ -95,14 +95,14 @@ export async function displayPostInstallInstructions(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isConvex) {
|
if (isConvex) {
|
||||||
output += `${pc.cyan(`${stepCounter++}.`)} ${runCmd} dev:setup ${pc.dim(
|
output += `${pc.cyan(`${stepCounter++}.`)} ${runCmd} dev:setup\n${pc.dim(
|
||||||
"(this will guide you through Convex project setup)",
|
" (this will guide you through Convex project setup)",
|
||||||
)}\n`;
|
)}\n`;
|
||||||
output += `${pc.cyan(
|
output += `${pc.cyan(
|
||||||
`${stepCounter++}.`,
|
`${stepCounter++}.`,
|
||||||
)} Copy environment variables from ${pc.white(
|
)} Copy environment variables from\n${pc.white(
|
||||||
"packages/backend/.env.local",
|
" packages/backend/.env.local",
|
||||||
)} \nto ${pc.white("apps/*/.env")}\n`;
|
)} to ${pc.white("apps/*/.env")}\n`;
|
||||||
output += `${pc.cyan(`${stepCounter++}.`)} ${runCmd} dev\n\n`;
|
output += `${pc.cyan(`${stepCounter++}.`)} ${runCmd} dev\n\n`;
|
||||||
} else {
|
} else {
|
||||||
if (runtime !== "workers") {
|
if (runtime !== "workers") {
|
||||||
@@ -113,7 +113,7 @@ export async function displayPostInstallInstructions(
|
|||||||
if (dbSetup === "d1") {
|
if (dbSetup === "d1") {
|
||||||
output += `${pc.yellow(
|
output += `${pc.yellow(
|
||||||
"IMPORTANT:",
|
"IMPORTANT:",
|
||||||
)} Complete D1 database setup first (see Database commands below)\n`;
|
)} Complete D1 database setup first\n (see Database commands below)\n`;
|
||||||
}
|
}
|
||||||
output += `${pc.cyan(`${stepCounter++}.`)} ${runCmd} dev\n`;
|
output += `${pc.cyan(`${stepCounter++}.`)} ${runCmd} dev\n`;
|
||||||
output += `${pc.cyan(
|
output += `${pc.cyan(
|
||||||
@@ -131,7 +131,7 @@ export async function displayPostInstallInstructions(
|
|||||||
} else if (!hasNative && !addons?.includes("starlight")) {
|
} else if (!hasNative && !addons?.includes("starlight")) {
|
||||||
output += `${pc.yellow(
|
output += `${pc.yellow(
|
||||||
"NOTE:",
|
"NOTE:",
|
||||||
)} You are creating a backend-only app (no frontend selected)\n`;
|
)} You are creating a backend-only app\n (no frontend selected)\n`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isConvex) {
|
if (!isConvex) {
|
||||||
@@ -163,7 +163,7 @@ export async function displayPostInstallInstructions(
|
|||||||
)}\n\n`;
|
)}\n\n`;
|
||||||
output += `${pc.bold(
|
output += `${pc.bold(
|
||||||
"Like Better-T Stack?",
|
"Like Better-T Stack?",
|
||||||
)} Please consider giving us a star on GitHub:\n`;
|
)} Please consider giving us a star\n on GitHub:\n`;
|
||||||
output += pc.cyan("https://github.com/AmanVarshney01/create-better-t-stack");
|
output += pc.cyan("https://github.com/AmanVarshney01/create-better-t-stack");
|
||||||
|
|
||||||
consola.box(output);
|
consola.box(output);
|
||||||
@@ -181,12 +181,12 @@ function getNativeInstructions(isConvex: boolean): string {
|
|||||||
|
|
||||||
let instructions = `${pc.yellow(
|
let instructions = `${pc.yellow(
|
||||||
"NOTE:",
|
"NOTE:",
|
||||||
)} For Expo connectivity issues, update apps/native/${envFileName} \nwith ${ipNote}:\n${`${envVar}=${exampleUrl}`}\n`;
|
)} For Expo connectivity issues, update\n apps/native/${envFileName} with ${ipNote}:\n ${`${envVar}=${exampleUrl}`}\n`;
|
||||||
|
|
||||||
if (isConvex) {
|
if (isConvex) {
|
||||||
instructions += `\n${pc.yellow(
|
instructions += `\n${pc.yellow(
|
||||||
"IMPORTANT:",
|
"IMPORTANT:",
|
||||||
)} When using local development with Convex and native apps, ensure you use your local IP address \ninstead of localhost or 127.0.0.1 for proper connectivity.\n`;
|
)} When using local development with Convex and native apps,\n ensure you use your local IP address instead of localhost or 127.0.0.1\n for proper connectivity.\n`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return instructions;
|
return instructions;
|
||||||
@@ -257,8 +257,7 @@ async function getDatabaseInstructions(
|
|||||||
instructions.push(
|
instructions.push(
|
||||||
`${pc.yellow(
|
`${pc.yellow(
|
||||||
"NOTE:",
|
"NOTE:",
|
||||||
)} Turso support with Prisma is in Early Access and requires additional setup.`,
|
)} Turso support with Prisma is in Early Access and requires\n additional setup. Learn more at:\n https://www.prisma.io/docs/orm/overview/databases/turso`,
|
||||||
`${"Learn more at: https://www.prisma.io/docs/orm/overview/databases/turso"}`,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -266,7 +265,7 @@ async function getDatabaseInstructions(
|
|||||||
instructions.push(
|
instructions.push(
|
||||||
`${pc.yellow(
|
`${pc.yellow(
|
||||||
"WARNING:",
|
"WARNING:",
|
||||||
)} Prisma + MongoDB + Docker combination may not work.`,
|
)} Prisma + MongoDB + Docker combination\n may not work.`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (dbSetup === "docker") {
|
if (dbSetup === "docker") {
|
||||||
@@ -299,7 +298,7 @@ async function getDatabaseInstructions(
|
|||||||
}
|
}
|
||||||
} else if (orm === "none") {
|
} else if (orm === "none") {
|
||||||
instructions.push(
|
instructions.push(
|
||||||
`${pc.yellow("NOTE:")} Manual database schema setup required.`,
|
`${pc.yellow("NOTE:")} Manual database schema setup\n required.`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -315,13 +314,13 @@ function getTauriInstructions(runCmd?: string): string {
|
|||||||
"•",
|
"•",
|
||||||
)} Build desktop app: ${`cd apps/web && ${runCmd} desktop:build`}\n${pc.yellow(
|
)} Build desktop app: ${`cd apps/web && ${runCmd} desktop:build`}\n${pc.yellow(
|
||||||
"NOTE:",
|
"NOTE:",
|
||||||
)} Tauri requires Rust and platform-specific dependencies.\nSee: ${"https://v2.tauri.app/start/prerequisites/"}`;
|
)} Tauri requires Rust and platform-specific dependencies.\n See: ${"https://v2.tauri.app/start/prerequisites/"}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPwaInstructions(): string {
|
function getPwaInstructions(): string {
|
||||||
return `\n${pc.bold("PWA with React Router v7:")}\n${pc.yellow(
|
return `\n${pc.bold("PWA with React Router v7:")}\n${pc.yellow(
|
||||||
"NOTE:",
|
"NOTE:",
|
||||||
)} There is a known compatibility issue between VitePWA \nand React Router v7.See: https://github.com/vite-pwa/vite-plugin-pwa/issues/809`;
|
)} There is a known compatibility issue between VitePWA\n and React Router v7. See:\n https://github.com/vite-pwa/vite-plugin-pwa/issues/809`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getStarlightInstructions(runCmd?: string): string {
|
function getStarlightInstructions(runCmd?: string): string {
|
||||||
@@ -335,13 +334,13 @@ function getStarlightInstructions(runCmd?: string): string {
|
|||||||
function getNoOrmWarning(): string {
|
function getNoOrmWarning(): string {
|
||||||
return `\n${pc.yellow(
|
return `\n${pc.yellow(
|
||||||
"WARNING:",
|
"WARNING:",
|
||||||
)} Database selected without an ORM. Features requiring database access (e.g., examples, auth) need manual setup.`;
|
)} Database selected without an ORM. Features requiring\n database access (e.g., examples, auth) need manual setup.`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBunWebNativeWarning(): string {
|
function getBunWebNativeWarning(): string {
|
||||||
return `\n${pc.yellow(
|
return `\n${pc.yellow(
|
||||||
"WARNING:",
|
"WARNING:",
|
||||||
)} 'bun' might cause issues with web + native apps in a monorepo. Use 'pnpm' if problems arise.`;
|
)} 'bun' might cause issues with web + native apps in a monorepo.\n Use 'pnpm' if problems arise.`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getWorkersDeployInstructions(runCmd?: string): string {
|
function getWorkersDeployInstructions(runCmd?: string): string {
|
||||||
|
|||||||
19
lerna.json
19
lerna.json
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.33.6",
|
|
||||||
"npmClient": "bun",
|
|
||||||
"command": {
|
|
||||||
"publish": {
|
|
||||||
"conventionalCommits": true,
|
|
||||||
"message": "chore(release): publish",
|
|
||||||
"verifyAccess": false
|
|
||||||
},
|
|
||||||
"version": {
|
|
||||||
"conventionalCommits": true,
|
|
||||||
"message": "chore(release): version"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"packages": [
|
|
||||||
"apps/*",
|
|
||||||
"packages/*"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -30,7 +30,6 @@
|
|||||||
"@biomejs/biome": "2.1.2",
|
"@biomejs/biome": "2.1.2",
|
||||||
"auto": "^11.3.0",
|
"auto": "^11.3.0",
|
||||||
"husky": "^9.1.7",
|
"husky": "^9.1.7",
|
||||||
"lerna": "^8.2.3",
|
|
||||||
"lint-staged": "^16.1.2",
|
"lint-staged": "^16.1.2",
|
||||||
"turbo": "^2.5.5",
|
"turbo": "^2.5.5",
|
||||||
"typescript": "5.8.3"
|
"typescript": "5.8.3"
|
||||||
|
|||||||
Reference in New Issue
Block a user