create-better-t-stack 3.2.10 → 3.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-C8z72H-V.js → src-DRbWVyGH.js} +42 -4
- package/package.json +1 -1
- package/templates/auth/better-auth/web/react/next/src/app/dashboard/dashboard.tsx.hbs +2 -0
- package/templates/auth/better-auth/web/react/react-router/src/routes/dashboard.tsx.hbs +2 -0
- package/templates/auth/better-auth/web/react/tanstack-router/src/routes/dashboard.tsx.hbs +2 -0
- package/templates/db-setup/docker-compose/postgres/docker-compose.yml.hbs +1 -1
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as router, i as init, n as createBtsCli, o as sponsors, r as docs, t as builder } from "./src-
|
|
2
|
+
import { a as router, i as init, n as createBtsCli, o as sponsors, r as docs, t as builder } from "./src-DRbWVyGH.js";
|
|
3
3
|
|
|
4
4
|
export { builder, createBtsCli, docs, init, router, sponsors };
|
|
@@ -2033,18 +2033,56 @@ function getPackageExecutionCommand(packageManager, commandWithArgs) {
|
|
|
2033
2033
|
|
|
2034
2034
|
//#endregion
|
|
2035
2035
|
//#region src/helpers/addons/fumadocs-setup.ts
|
|
2036
|
+
const TEMPLATES = {
|
|
2037
|
+
"next-mdx": {
|
|
2038
|
+
label: "Next.js: Fumadocs MDX",
|
|
2039
|
+
hint: "Recommended template with MDX support",
|
|
2040
|
+
value: "+next+fuma-docs-mdx"
|
|
2041
|
+
},
|
|
2042
|
+
waku: {
|
|
2043
|
+
label: "Waku: Content Collections",
|
|
2044
|
+
hint: "Template using Waku with content collections",
|
|
2045
|
+
value: "waku"
|
|
2046
|
+
},
|
|
2047
|
+
"react-router": {
|
|
2048
|
+
label: "React Router: MDX Remote",
|
|
2049
|
+
hint: "Template for React Router with MDX remote",
|
|
2050
|
+
value: "react-router"
|
|
2051
|
+
},
|
|
2052
|
+
"react-router-spa": {
|
|
2053
|
+
label: "React Router: SPA",
|
|
2054
|
+
hint: "Template for React Router SPA",
|
|
2055
|
+
value: "react-router-spa"
|
|
2056
|
+
},
|
|
2057
|
+
"tanstack-start": {
|
|
2058
|
+
label: "Tanstack Start: MDX Remote",
|
|
2059
|
+
hint: "Template for Tanstack Start with MDX remote",
|
|
2060
|
+
value: "tanstack-start"
|
|
2061
|
+
}
|
|
2062
|
+
};
|
|
2036
2063
|
async function setupFumadocs(config) {
|
|
2037
2064
|
const { packageManager, projectDir } = config;
|
|
2038
2065
|
try {
|
|
2039
2066
|
log.info("Setting up Fumadocs...");
|
|
2040
|
-
const
|
|
2067
|
+
const template = await select({
|
|
2068
|
+
message: "Choose a template",
|
|
2069
|
+
options: Object.entries(TEMPLATES).map(([key, template$1]) => ({
|
|
2070
|
+
value: key,
|
|
2071
|
+
label: template$1.label,
|
|
2072
|
+
hint: template$1.hint
|
|
2073
|
+
})),
|
|
2074
|
+
initialValue: "next-mdx"
|
|
2075
|
+
});
|
|
2076
|
+
if (isCancel(template)) return exitCancelled("Operation cancelled");
|
|
2077
|
+
const fumadocsInitCommand = getPackageExecutionCommand(packageManager, `create-fumadocs-app@16.0.4 fumadocs --template ${TEMPLATES[template].value} --src --pm ${packageManager} --no-git`);
|
|
2041
2078
|
const appsDir = path.join(projectDir, "apps");
|
|
2042
2079
|
await fs.ensureDir(appsDir);
|
|
2080
|
+
const s = spinner();
|
|
2081
|
+
s.start("Setting up Fumadocs...");
|
|
2043
2082
|
await execa(fumadocsInitCommand, {
|
|
2044
2083
|
cwd: appsDir,
|
|
2045
2084
|
env: { CI: "true" },
|
|
2046
|
-
shell: true
|
|
2047
|
-
stdio: "inherit"
|
|
2085
|
+
shell: true
|
|
2048
2086
|
});
|
|
2049
2087
|
const fumadocsDir = path.join(projectDir, "apps", "fumadocs");
|
|
2050
2088
|
const packageJsonPath = path.join(fumadocsDir, "package.json");
|
|
@@ -2054,7 +2092,7 @@ async function setupFumadocs(config) {
|
|
|
2054
2092
|
if (packageJson.scripts?.dev) packageJson.scripts.dev = `${packageJson.scripts.dev} --port=4000`;
|
|
2055
2093
|
await fs.writeJson(packageJsonPath, packageJson, { spaces: 2 });
|
|
2056
2094
|
}
|
|
2057
|
-
|
|
2095
|
+
s.stop("Fumadocs setup complete!");
|
|
2058
2096
|
} catch (error) {
|
|
2059
2097
|
log.error(pc.red("Failed to set up Fumadocs"));
|
|
2060
2098
|
if (error instanceof Error) consola.error(pc.red(error.message));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-better-t-stack",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.12",
|
|
4
4
|
"description": "A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|