create-better-t-stack 2.45.4 → 2.46.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.
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.js +1 -1
- package/dist/{src-Cun9EO6e.js → src-NOw0j6Z9.js} +272 -132
- package/package.json +1 -1
- package/templates/auth/better-auth/server/base/src/lib/auth.ts.hbs +163 -16
- package/templates/auth/better-auth/web/nuxt/app/pages/dashboard.vue.hbs +36 -2
- package/templates/auth/better-auth/web/nuxt/app/plugins/auth-client.ts.hbs +22 -0
- package/templates/auth/better-auth/web/react/base/src/lib/auth-client.ts.hbs +6 -0
- package/templates/auth/better-auth/web/react/next/src/app/dashboard/dashboard.tsx.hbs +58 -0
- package/templates/auth/better-auth/web/react/next/src/app/dashboard/page.tsx.hbs +31 -41
- package/templates/auth/better-auth/web/react/react-router/src/routes/dashboard.tsx.hbs +37 -3
- package/templates/auth/better-auth/web/react/tanstack-router/src/routes/dashboard.tsx.hbs +50 -32
- package/templates/auth/better-auth/web/react/tanstack-start/src/routes/dashboard.tsx.hbs +51 -36
- package/templates/auth/better-auth/web/solid/src/lib/auth-client.ts.hbs +11 -0
- package/templates/auth/better-auth/web/solid/src/routes/dashboard.tsx.hbs +52 -29
- package/templates/auth/better-auth/web/svelte/src/lib/{auth-client.ts → auth-client.ts.hbs} +6 -0
- package/templates/auth/better-auth/web/svelte/src/routes/dashboard/+page.svelte.hbs +24 -3
- package/templates/backend/server/server-base/package.json.hbs +1 -1
- package/templates/extras/bunfig.toml.hbs +4 -0
- package/templates/frontend/react/tanstack-start/src/routes/__root.tsx.hbs +4 -0
- package/templates/frontend/solid/package.json.hbs +10 -10
- package/templates/payments/polar/server/base/src/lib/payments.ts.hbs +6 -0
- package/templates/payments/polar/web/nuxt/app/pages/success.vue.hbs +11 -0
- package/templates/payments/polar/web/react/next/src/app/success/page.tsx.hbs +15 -0
- package/templates/payments/polar/web/react/react-router/src/routes/success.tsx.hbs +13 -0
- package/templates/payments/polar/web/react/tanstack-router/src/routes/success.tsx.hbs +19 -0
- package/templates/payments/polar/web/react/tanstack-start/src/routes/success.tsx.hbs +19 -0
- package/templates/payments/polar/web/solid/src/routes/success.tsx.hbs +23 -0
- package/templates/payments/polar/web/svelte/src/routes/success/+page.svelte.hbs +12 -0
- package/templates/auth/better-auth/web/nuxt/app/plugins/auth-client.ts +0 -16
- package/templates/auth/better-auth/web/solid/src/lib/auth-client.ts +0 -5
- /package/templates/auth/better-auth/web/nuxt/app/components/{SignInForm.vue → SignInForm.vue.hbs} +0 -0
- /package/templates/auth/better-auth/web/nuxt/app/components/{SignUpForm.vue → SignUpForm.vue.hbs} +0 -0
- /package/templates/auth/better-auth/web/nuxt/app/components/{UserMenu.vue → UserMenu.vue.hbs} +0 -0
- /package/templates/auth/better-auth/web/nuxt/app/pages/{login.vue → login.vue.hbs} +0 -0
- /package/templates/auth/better-auth/web/react/next/src/app/login/{page.tsx → page.tsx.hbs} +0 -0
- /package/templates/auth/better-auth/web/react/next/src/components/{sign-in-form.tsx → sign-in-form.tsx.hbs} +0 -0
- /package/templates/auth/better-auth/web/react/next/src/components/{sign-up-form.tsx → sign-up-form.tsx.hbs} +0 -0
- /package/templates/auth/better-auth/web/react/next/src/components/{theme-provider.tsx → theme-provider.tsx.hbs} +0 -0
- /package/templates/auth/better-auth/web/react/next/src/components/{user-menu.tsx → user-menu.tsx.hbs} +0 -0
- /package/templates/auth/better-auth/web/react/react-router/src/components/{sign-in-form.tsx → sign-in-form.tsx.hbs} +0 -0
- /package/templates/auth/better-auth/web/react/react-router/src/components/{sign-up-form.tsx → sign-up-form.tsx.hbs} +0 -0
- /package/templates/auth/better-auth/web/react/react-router/src/components/{user-menu.tsx → user-menu.tsx.hbs} +0 -0
- /package/templates/auth/better-auth/web/react/react-router/src/routes/{login.tsx → login.tsx.hbs} +0 -0
- /package/templates/auth/better-auth/web/svelte/src/components/{SignInForm.svelte → SignInForm.svelte.hbs} +0 -0
- /package/templates/auth/better-auth/web/svelte/src/components/{SignUpForm.svelte → SignUpForm.svelte.hbs} +0 -0
- /package/templates/auth/better-auth/web/svelte/src/components/{UserMenu.svelte → UserMenu.svelte.hbs} +0 -0
- /package/templates/auth/better-auth/web/svelte/src/routes/login/{+page.svelte → +page.svelte.hbs} +0 -0
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -99,6 +99,11 @@ declare const AuthSchema: z.ZodEnum<{
|
|
|
99
99
|
clerk: "clerk";
|
|
100
100
|
}>;
|
|
101
101
|
type Auth = z.infer<typeof AuthSchema>;
|
|
102
|
+
declare const PaymentsSchema: z.ZodEnum<{
|
|
103
|
+
none: "none";
|
|
104
|
+
polar: "polar";
|
|
105
|
+
}>;
|
|
106
|
+
type Payments = z.infer<typeof PaymentsSchema>;
|
|
102
107
|
declare const WebDeploySchema: z.ZodEnum<{
|
|
103
108
|
none: "none";
|
|
104
109
|
wrangler: "wrangler";
|
|
@@ -126,6 +131,7 @@ type CreateInput = {
|
|
|
126
131
|
database?: Database;
|
|
127
132
|
orm?: ORM;
|
|
128
133
|
auth?: Auth;
|
|
134
|
+
payments?: Payments;
|
|
129
135
|
frontend?: Frontend[];
|
|
130
136
|
addons?: Addons[];
|
|
131
137
|
examples?: Examples[];
|
|
@@ -163,6 +169,7 @@ interface ProjectConfig {
|
|
|
163
169
|
addons: Addons[];
|
|
164
170
|
examples: Examples[];
|
|
165
171
|
auth: Auth;
|
|
172
|
+
payments: Payments;
|
|
166
173
|
git: boolean;
|
|
167
174
|
packageManager: PackageManager;
|
|
168
175
|
install: boolean;
|
|
@@ -182,6 +189,7 @@ interface BetterTStackConfig {
|
|
|
182
189
|
addons: Addons[];
|
|
183
190
|
examples: Examples[];
|
|
184
191
|
auth: Auth;
|
|
192
|
+
payments: Payments;
|
|
185
193
|
packageManager: PackageManager;
|
|
186
194
|
dbSetup: DatabaseSetup;
|
|
187
195
|
api: API;
|
|
@@ -214,6 +222,7 @@ declare const router: trpcServer.TRPCBuiltRouter<{
|
|
|
214
222
|
database?: "none" | "sqlite" | "postgres" | "mysql" | "mongodb" | undefined;
|
|
215
223
|
orm?: "none" | "drizzle" | "prisma" | "mongoose" | undefined;
|
|
216
224
|
auth?: "none" | "better-auth" | "clerk" | undefined;
|
|
225
|
+
payments?: "none" | "polar" | undefined;
|
|
217
226
|
frontend?: ("none" | "tanstack-router" | "react-router" | "tanstack-start" | "next" | "nuxt" | "native-nativewind" | "native-unistyles" | "svelte" | "solid")[] | undefined;
|
|
218
227
|
addons?: ("none" | "pwa" | "tauri" | "starlight" | "biome" | "husky" | "ruler" | "turborepo" | "fumadocs" | "ultracite" | "oxlint")[] | undefined;
|
|
219
228
|
examples?: ("none" | "todo" | "ai")[] | undefined;
|
|
@@ -245,6 +254,7 @@ declare const router: trpcServer.TRPCBuiltRouter<{
|
|
|
245
254
|
addons: never[];
|
|
246
255
|
examples: never[];
|
|
247
256
|
auth: "none";
|
|
257
|
+
payments: "none";
|
|
248
258
|
git: false;
|
|
249
259
|
packageManager: "npm";
|
|
250
260
|
install: false;
|
package/dist/index.js
CHANGED