create-better-t-stack 2.1.4 → 2.1.5
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/README.md +40 -19
- package/dist/index.js +97 -97
- package/package.json +1 -1
- package/templates/api/orpc/web/svelte/src/lib/orpc.ts.hbs +31 -0
- package/templates/auth/web/svelte/src/components/SignInForm.svelte +108 -0
- package/templates/auth/web/svelte/src/components/SignUpForm.svelte +142 -0
- package/templates/auth/web/svelte/src/components/UserMenu.svelte +54 -0
- package/templates/auth/web/svelte/src/lib/auth-client.ts +6 -0
- package/templates/auth/web/svelte/src/routes/dashboard/+page.svelte +31 -0
- package/templates/auth/web/svelte/src/routes/login/+page.svelte +12 -0
- package/templates/examples/ai/web/nuxt/app/pages/ai.vue +1 -2
- package/templates/examples/ai/web/svelte/src/routes/ai/+page.svelte +98 -0
- package/templates/examples/todo/web/svelte/src/routes/todos/+page.svelte +150 -0
- package/templates/frontend/react/tanstack-router/vite.config.ts.hbs +0 -2
- package/templates/frontend/svelte/_gitignore +23 -0
- package/templates/frontend/svelte/_npmrc +1 -0
- package/templates/frontend/svelte/package.json +31 -0
- package/templates/frontend/svelte/src/app.css +5 -0
- package/templates/frontend/svelte/src/app.d.ts +13 -0
- package/templates/frontend/svelte/src/app.html +12 -0
- package/templates/frontend/svelte/src/components/Header.svelte.hbs +40 -0
- package/templates/frontend/svelte/src/lib/index.ts +1 -0
- package/templates/frontend/svelte/src/routes/+layout.svelte.hbs +19 -0
- package/templates/frontend/svelte/src/routes/+page.svelte.hbs +44 -0
- package/templates/frontend/svelte/static/favicon.png +0 -0
- package/templates/frontend/svelte/svelte.config.js +18 -0
- package/templates/frontend/svelte/tsconfig.json +19 -0
- package/templates/frontend/svelte/vite.config.ts +7 -0
package/README.md
CHANGED
|
@@ -21,22 +21,35 @@ Follow the prompts to configure your project or use the `--yes` flag for default
|
|
|
21
21
|
|
|
22
22
|
## Features
|
|
23
23
|
|
|
24
|
-
- **
|
|
25
|
-
- **
|
|
26
|
-
- **
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
- **
|
|
34
|
-
- **
|
|
35
|
-
- **
|
|
36
|
-
- **
|
|
37
|
-
- **
|
|
38
|
-
- **
|
|
39
|
-
- **
|
|
24
|
+
- **TypeScript**: End-to-end type safety.
|
|
25
|
+
- **Monorepo Structure**: Choose between Turborepo for optimized builds or standard pnpm/npm/bun workspaces.
|
|
26
|
+
- **Frontend Options**:
|
|
27
|
+
- React with Vite: TanStack Router, React Router, or TanStack Start.
|
|
28
|
+
- Next.js (Full-stack or frontend-only).
|
|
29
|
+
- Nuxt (Vue framework).
|
|
30
|
+
- SvelteKit.
|
|
31
|
+
- React Native with Expo for mobile apps.
|
|
32
|
+
- None.
|
|
33
|
+
- **UI**: Tailwind CSS with shadcn/ui components pre-configured.
|
|
34
|
+
- **Backend Frameworks**: Choose between Hono, Express, Elysia, or use Next.js API routes.
|
|
35
|
+
- **API Layer**: End-to-end type safety with tRPC or oRPC.
|
|
36
|
+
- **Runtime Options**: Choose between Bun or Node.js for your server.
|
|
37
|
+
- **Database Options**: SQLite, PostgreSQL, MySQL, MongoDB, or no database.
|
|
38
|
+
- **ORM Selection**: Choose between Drizzle ORM (TypeScript-first), Prisma (feature-rich), or no ORM.
|
|
39
|
+
- **Database Setup**: Optional automated setup for Turso (SQLite), Neon (Postgres), Prisma Postgres (Supabase), or MongoDB Atlas.
|
|
40
|
+
- **Authentication**: Optional auth setup using Better-Auth (email/password, OAuth coming soon).
|
|
41
|
+
- **Addons**:
|
|
42
|
+
- **PWA**: Add Progressive Web App support.
|
|
43
|
+
- **Tauri**: Build native desktop applications.
|
|
44
|
+
- **Starlight**: Add an Astro-based documentation site.
|
|
45
|
+
- **Biome**: Integrated linting and formatting.
|
|
46
|
+
- **Husky**: Git hooks for code quality checks (lint-staged).
|
|
47
|
+
- **Turborepo**: Optimized monorepo build system.
|
|
48
|
+
- **Examples**: Include pre-built examples like a Todo app or an AI Chat interface (using Vercel AI SDK).
|
|
49
|
+
- **Developer Experience**:
|
|
50
|
+
- Automatic Git initialization.
|
|
51
|
+
- Choice of package manager (npm, pnpm, bun).
|
|
52
|
+
- Optional automatic dependency installation.
|
|
40
53
|
|
|
41
54
|
## Usage
|
|
42
55
|
|
|
@@ -50,53 +63,61 @@ Options:
|
|
|
50
63
|
--orm <type> ORM type (none, drizzle, prisma)
|
|
51
64
|
--auth Include authentication
|
|
52
65
|
--no-auth Exclude authentication
|
|
53
|
-
--frontend <types...> Frontend types (tanstack-router, react-router, tanstack-start, native, none)
|
|
54
|
-
--addons <types...> Additional addons (pwa, tauri, starlight, biome, husky, none)
|
|
66
|
+
--frontend <types...> Frontend types (tanstack-router, react-router, tanstack-start, next, nuxt, svelte, native, none)
|
|
67
|
+
--addons <types...> Additional addons (pwa, tauri, starlight, biome, husky, turborepo, none)
|
|
55
68
|
--examples <types...> Examples to include (todo, ai, none)
|
|
56
69
|
--git Initialize git repository
|
|
57
70
|
--no-git Skip git initialization
|
|
58
71
|
--package-manager <pm> Package manager (npm, pnpm, bun)
|
|
59
72
|
--install Install dependencies
|
|
60
73
|
--no-install Skip installing dependencies
|
|
61
|
-
--db-setup <setup> Database setup (turso, prisma-postgres, mongodb-atlas, none)
|
|
74
|
+
--db-setup <setup> Database setup (turso, neon, prisma-postgres, mongodb-atlas, none)
|
|
62
75
|
--backend <framework> Backend framework (hono, express, elysia)
|
|
63
76
|
--runtime <runtime> Runtime (bun, node)
|
|
77
|
+
--api <type> API type (trpc, orpc)
|
|
64
78
|
-h, --help Display help
|
|
65
79
|
```
|
|
66
80
|
|
|
67
81
|
## Examples
|
|
68
82
|
|
|
69
83
|
Create a project with default configuration:
|
|
84
|
+
|
|
70
85
|
```bash
|
|
71
86
|
npx create-better-t-stack my-app --yes
|
|
72
87
|
```
|
|
73
88
|
|
|
74
89
|
Create a project with specific options:
|
|
90
|
+
|
|
75
91
|
```bash
|
|
76
92
|
npx create-better-t-stack my-app --database postgres --orm drizzle --auth --addons pwa biome
|
|
77
93
|
```
|
|
78
94
|
|
|
79
95
|
Create a project with Elysia and Node.js runtime:
|
|
96
|
+
|
|
80
97
|
```bash
|
|
81
98
|
npx create-better-t-stack my-app --backend elysia --runtime node
|
|
82
99
|
```
|
|
83
100
|
|
|
84
101
|
Create a project with specific frontend options:
|
|
102
|
+
|
|
85
103
|
```bash
|
|
86
104
|
npx create-better-t-stack my-app --frontend tanstack-router native
|
|
87
105
|
```
|
|
88
106
|
|
|
89
107
|
Create a project with examples:
|
|
108
|
+
|
|
90
109
|
```bash
|
|
91
110
|
npx create-better-t-stack my-app --examples todo ai
|
|
92
111
|
```
|
|
93
112
|
|
|
94
113
|
Create a project with Turso database setup:
|
|
114
|
+
|
|
95
115
|
```bash
|
|
96
116
|
npx create-better-t-stack my-app --db-setup turso
|
|
97
117
|
```
|
|
98
118
|
|
|
99
119
|
Create a project with documentation site:
|
|
120
|
+
|
|
100
121
|
```bash
|
|
101
122
|
npx create-better-t-stack my-app --addons starlight
|
|
102
123
|
```
|