create-better-t-stack 1.7.0 → 1.8.0

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.
Files changed (34) hide show
  1. package/README.md +6 -4
  2. package/dist/index.js +106 -102
  3. package/package.json +4 -6
  4. package/template/base/apps/web-base/src/index.css +1 -1
  5. package/template/base/apps/web-tanstack-router/src/components/mode-toggle.tsx +37 -0
  6. package/template/base/apps/web-tanstack-router/src/components/theme-provider.tsx +73 -0
  7. package/template/base/apps/web-tanstack-router/src/routes/__root.tsx +1 -2
  8. package/template/base/apps/web-tanstack-start/app.config.ts +17 -0
  9. package/template/base/apps/web-tanstack-start/package.json +52 -0
  10. package/template/base/apps/web-tanstack-start/public/robots.txt +3 -0
  11. package/template/base/apps/web-tanstack-start/src/api.ts +6 -0
  12. package/template/base/apps/web-tanstack-start/src/client.tsx +8 -0
  13. package/template/base/apps/web-tanstack-start/src/components/header.tsx +27 -0
  14. package/template/base/apps/web-tanstack-start/src/index.css +135 -0
  15. package/template/base/apps/web-tanstack-start/src/router.tsx +70 -0
  16. package/template/base/apps/web-tanstack-start/src/routes/__root.tsx +68 -0
  17. package/template/base/apps/web-tanstack-start/src/routes/index.tsx +88 -0
  18. package/template/base/apps/web-tanstack-start/src/ssr.tsx +12 -0
  19. package/template/base/apps/web-tanstack-start/src/utils/trpc.ts +5 -0
  20. package/template/base/apps/web-tanstack-start/tsconfig.json +28 -0
  21. package/template/examples/ai/apps/web-tanstack-start/src/routes/ai.tsx +69 -0
  22. package/template/examples/todo/apps/web-tanstack-start/src/routes/todos.tsx +135 -0
  23. package/template/with-auth/apps/web-tanstack-router/src/utils/trpc.ts +39 -0
  24. package/template/with-auth/apps/web-tanstack-start/src/components/header.tsx +32 -0
  25. package/template/with-auth/apps/web-tanstack-start/src/components/sign-in-form.tsx +139 -0
  26. package/template/with-auth/apps/web-tanstack-start/src/components/sign-up-form.tsx +164 -0
  27. package/template/with-auth/apps/web-tanstack-start/src/components/user-menu.tsx +62 -0
  28. package/template/with-auth/apps/web-tanstack-start/src/router.tsx +76 -0
  29. package/template/with-auth/apps/web-tanstack-start/src/routes/dashboard.tsx +37 -0
  30. package/template/with-auth/apps/web-tanstack-start/src/routes/login.tsx +18 -0
  31. package/template/with-drizzle-sqlite/apps/server/src/db/schema/auth.ts +0 -6
  32. /package/template/base/apps/{web-base → web-react-router}/src/components/mode-toggle.tsx +0 -0
  33. /package/template/base/apps/{web-base → web-react-router}/src/components/theme-provider.tsx +0 -0
  34. /package/template/with-auth/apps/{web-base → web-react-router}/src/utils/trpc.ts +0 -0
package/README.md CHANGED
@@ -17,7 +17,7 @@ bun create better-t-stack@latest
17
17
  pnpm create better-t-stack@latest
18
18
  ```
19
19
 
20
- Follow the prompts to configure your project or use the `-y` flag for defaults.
20
+ Follow the prompts to configure your project or use the `--yes` flag for defaults.
21
21
 
22
22
  ## Features
23
23
 
@@ -49,7 +49,7 @@ Options:
49
49
  --orm <type> ORM type (none, drizzle, prisma)
50
50
  --auth Include authentication
51
51
  --no-auth Exclude authentication
52
- --frontend <types...> Frontend types (web, native, none)
52
+ --frontend <types...> Frontend types (tanstack-router, react-router, tanstack-start, native, none)
53
53
  --addons <types...> Additional addons (pwa, tauri, biome, husky, none)
54
54
  --examples <types...> Examples to include (todo, ai)
55
55
  --no-examples Skip all examples
@@ -60,6 +60,8 @@ Options:
60
60
  --no-install Skip installing dependencies
61
61
  --turso Set up Turso for SQLite database
62
62
  --no-turso Skip Turso setup
63
+ --prisma-postgres Set up Prisma Postgres
64
+ --no-prisma-postgres Skip Prisma Postgres setup
63
65
  --backend <framework> Backend framework (hono, elysia)
64
66
  --runtime <runtime> Runtime (bun, node)
65
67
  -h, --help Display help
@@ -69,7 +71,7 @@ Options:
69
71
 
70
72
  Create a project with default configuration:
71
73
  ```bash
72
- npx create-better-t-stack my-app -y
74
+ npx create-better-t-stack my-app --yes
73
75
  ```
74
76
 
75
77
  Create a project with specific options:
@@ -84,7 +86,7 @@ npx create-better-t-stack my-app --backend elysia --runtime node
84
86
 
85
87
  Create a project with specific frontend options:
86
88
  ```bash
87
- npx create-better-t-stack my-app --frontend web native
89
+ npx create-better-t-stack my-app --frontend tanstack-router native
88
90
  ```
89
91
 
90
92
  Create a project with examples: