create-better-t-stack 2.16.0 → 2.16.1
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/index.js +2 -2
- package/package.json +1 -1
- package/templates/api/orpc/native/utils/orpc.ts.hbs +0 -14
- package/templates/api/orpc/server/base/src/lib/orpc.ts.hbs +0 -1
- package/templates/api/orpc/web/react/base/src/utils/orpc.ts.hbs +0 -15
- package/templates/auth/web/react/tanstack-start/src/routes/dashboard.tsx.hbs +1 -2
- package/templates/examples/todo/web/react/tanstack-start/src/routes/todos.tsx.hbs +5 -6
- package/templates/frontend/react/next/src/components/providers.tsx.hbs +32 -30
- package/templates/frontend/react/react-router/src/root.tsx.hbs +54 -56
- package/templates/frontend/react/tanstack-router/src/routes/__root.tsx.hbs +0 -2
- package/templates/frontend/react/tanstack-start/package.json +12 -12
- package/templates/frontend/react/tanstack-start/src/router.tsx.hbs +3 -6
- package/templates/frontend/react/tanstack-start/src/routes/index.tsx.hbs +1 -2
- package/templates/frontend/solid/package.json +0 -6
package/dist/index.js
CHANGED
|
@@ -96,8 +96,8 @@ const dependencyVersionMap = {
|
|
|
96
96
|
"@convex-dev/react-query": "^0.0.0-alpha.8",
|
|
97
97
|
"convex-svelte": "^0.0.11",
|
|
98
98
|
"@tanstack/svelte-query": "^5.74.4",
|
|
99
|
-
"@tanstack/react-query-devtools": "^5.
|
|
100
|
-
"@tanstack/react-query": "^5.
|
|
99
|
+
"@tanstack/react-query-devtools": "^5.80.5",
|
|
100
|
+
"@tanstack/react-query": "^5.80.5",
|
|
101
101
|
"@tanstack/solid-query": "^5.75.0",
|
|
102
102
|
"@tanstack/solid-query-devtools": "^5.75.0"
|
|
103
103
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-better-t-stack",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.1",
|
|
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",
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import { createORPCClient } from "@orpc/client";
|
|
2
2
|
import { RPCLink } from "@orpc/client/fetch";
|
|
3
3
|
import { createTanstackQueryUtils } from "@orpc/tanstack-query";
|
|
4
|
-
import type { RouterUtils } from "@orpc/tanstack-query";
|
|
5
4
|
import type { RouterClient } from "@orpc/server";
|
|
6
5
|
import { QueryCache, QueryClient } from "@tanstack/react-query";
|
|
7
|
-
import { createContext, useContext } from "react";
|
|
8
6
|
import type { appRouter } from "../../server/src/routers";
|
|
9
7
|
{{#if auth}}
|
|
10
8
|
import { authClient } from "@/lib/auth-client";
|
|
11
9
|
{{/if}}
|
|
12
10
|
|
|
13
|
-
type ORPCReactUtils = RouterUtils<RouterClient<typeof appRouter>>;
|
|
14
|
-
|
|
15
11
|
export const queryClient = new QueryClient({
|
|
16
12
|
queryCache: new QueryCache({
|
|
17
13
|
onError: (error) => {
|
|
@@ -37,13 +33,3 @@ export const link = new RPCLink({
|
|
|
37
33
|
export const client: RouterClient<typeof appRouter> = createORPCClient(link);
|
|
38
34
|
|
|
39
35
|
export const orpc = createTanstackQueryUtils(client);
|
|
40
|
-
|
|
41
|
-
export const ORPCContext = createContext<ORPCReactUtils | undefined>(undefined);
|
|
42
|
-
|
|
43
|
-
export function useORPC(): ORPCReactUtils {
|
|
44
|
-
const orpc = useContext(ORPCContext);
|
|
45
|
-
if (!orpc) {
|
|
46
|
-
throw new Error("ORPCContext is not set up properly");
|
|
47
|
-
}
|
|
48
|
-
return orpc;
|
|
49
|
-
}
|
|
@@ -5,10 +5,6 @@ import { QueryCache, QueryClient } from "@tanstack/react-query";
|
|
|
5
5
|
import { toast } from "sonner";
|
|
6
6
|
import type { appRouter } from "../../../server/src/routers/index";
|
|
7
7
|
import type { RouterClient } from "@orpc/server";
|
|
8
|
-
import { createContext, use } from 'react'
|
|
9
|
-
import type { RouterUtils } from '@orpc/tanstack-query'
|
|
10
|
-
|
|
11
|
-
type ORPCReactUtils = RouterUtils<RouterClient<typeof appRouter>>
|
|
12
8
|
|
|
13
9
|
export const queryClient = new QueryClient({
|
|
14
10
|
queryCache: new QueryCache({
|
|
@@ -44,14 +40,3 @@ export const link = new RPCLink({
|
|
|
44
40
|
export const client: RouterClient<typeof appRouter> = createORPCClient(link)
|
|
45
41
|
|
|
46
42
|
export const orpc = createTanstackQueryUtils(client)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
export const ORPCContext = createContext<ORPCReactUtils | undefined>(undefined)
|
|
50
|
-
|
|
51
|
-
export function useORPC(): ORPCReactUtils {
|
|
52
|
-
const orpc = use(ORPCContext)
|
|
53
|
-
if (!orpc) {
|
|
54
|
-
throw new Error('ORPCContext is not set up properly')
|
|
55
|
-
}
|
|
56
|
-
return orpc
|
|
57
|
-
}
|
|
@@ -3,7 +3,7 @@ import { authClient } from "@/lib/auth-client";
|
|
|
3
3
|
import { useTRPC } from "@/utils/trpc";
|
|
4
4
|
{{/if}}
|
|
5
5
|
{{#if (eq api "orpc")}}
|
|
6
|
-
import {
|
|
6
|
+
import { orpc } from "@/utils/orpc";
|
|
7
7
|
{{/if}}
|
|
8
8
|
import { useQuery } from "@tanstack/react-query";
|
|
9
9
|
import { createFileRoute } from "@tanstack/react-router";
|
|
@@ -19,7 +19,6 @@ function RouteComponent() {
|
|
|
19
19
|
const trpc = useTRPC();
|
|
20
20
|
{{/if}}
|
|
21
21
|
{{#if (eq api "orpc")}}
|
|
22
|
-
const orpc = useORPC();
|
|
23
22
|
{{/if}}
|
|
24
23
|
const { data: session, isPending } = authClient.useSession();
|
|
25
24
|
|
|
@@ -19,12 +19,12 @@ import { useMutation } from "convex/react";
|
|
|
19
19
|
import { api } from "@{{projectName}}/backend/convex/_generated/api";
|
|
20
20
|
import type { Id } from "@{{projectName}}/backend/convex/_generated/dataModel";
|
|
21
21
|
{{else}}
|
|
22
|
-
|
|
22
|
+
{{#if (eq api "trpc")}}
|
|
23
23
|
import { useTRPC } from "@/utils/trpc";
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
import {
|
|
27
|
-
|
|
24
|
+
{{/if}}
|
|
25
|
+
{{#if (eq api "orpc")}}
|
|
26
|
+
import { orpc } from "@/utils/orpc";
|
|
27
|
+
{{/if}}
|
|
28
28
|
import { useMutation, useQuery } from "@tanstack/react-query";
|
|
29
29
|
{{/if}}
|
|
30
30
|
|
|
@@ -77,7 +77,6 @@ function TodosRoute() {
|
|
|
77
77
|
const trpc = useTRPC();
|
|
78
78
|
{{/if}}
|
|
79
79
|
{{#if (eq api "orpc")}}
|
|
80
|
-
const orpc = useORPC();
|
|
81
80
|
{{/if}}
|
|
82
81
|
|
|
83
82
|
{{#if (eq api "trpc")}}
|
|
@@ -1,28 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
{{#if (eq backend "convex")}}
|
|
4
|
-
|
|
4
|
+
import { ConvexProvider, ConvexReactClient } from "convex/react";
|
|
5
5
|
{{else}}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
{{#unless (eq api "none")}}
|
|
7
|
+
import { QueryClientProvider } from "@tanstack/react-query";
|
|
8
|
+
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
|
|
9
|
+
{{#if (eq api "orpc")}}
|
|
10
|
+
import { queryClient } from "@/utils/orpc";
|
|
11
|
+
{{/if}}
|
|
12
|
+
{{#if (eq api "trpc")}}
|
|
13
|
+
import { queryClient } from "@/utils/trpc";
|
|
14
|
+
{{/if}}
|
|
15
|
+
{{/unless}}
|
|
16
16
|
{{/if}}
|
|
17
|
-
|
|
18
17
|
import { ThemeProvider } from "./theme-provider";
|
|
19
18
|
import { Toaster } from "./ui/sonner";
|
|
20
19
|
|
|
21
20
|
{{#if (eq backend "convex")}}
|
|
22
|
-
|
|
21
|
+
const convex = new ConvexReactClient(process.env.NEXT_PUBLIC_CONVEX_URL!);
|
|
23
22
|
{{/if}}
|
|
24
23
|
|
|
25
|
-
export default function Providers({
|
|
24
|
+
export default function Providers({
|
|
25
|
+
children
|
|
26
|
+
}: {
|
|
27
|
+
children: React.ReactNode
|
|
28
|
+
}) {
|
|
29
|
+
return (
|
|
26
30
|
<ThemeProvider
|
|
27
31
|
attribute="class"
|
|
28
32
|
defaultTheme="system"
|
|
@@ -30,23 +34,21 @@ export default function Providers({ children }: { children: React.ReactNode }) {
|
|
|
30
34
|
disableTransitionOnChange
|
|
31
35
|
>
|
|
32
36
|
{{#if (eq backend "convex")}}
|
|
33
|
-
|
|
37
|
+
<ConvexProvider client={convex}>{children}</ConvexProvider>
|
|
38
|
+
{{else}}
|
|
39
|
+
{{#unless (eq api "none")}}
|
|
40
|
+
<QueryClientProvider client={queryClient}>
|
|
41
|
+
{{#if (eq api "orpc")}}
|
|
42
|
+
{children}
|
|
43
|
+
{{/if}}
|
|
44
|
+
{{#if (eq api "trpc")}}
|
|
45
|
+
{children}
|
|
46
|
+
{{/if}}
|
|
47
|
+
<ReactQueryDevtools />
|
|
48
|
+
</QueryClientProvider>
|
|
34
49
|
{{else}}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
{{#if (eq api "orpc")}}
|
|
38
|
-
<ORPCContext.Provider value={orpc}>
|
|
39
|
-
{children}
|
|
40
|
-
</ORPCContext.Provider>
|
|
41
|
-
{{/if}}
|
|
42
|
-
{{#if (eq api "trpc")}}
|
|
43
|
-
{children}
|
|
44
|
-
{{/if}}
|
|
45
|
-
<ReactQueryDevtools />
|
|
46
|
-
</QueryClientProvider>
|
|
47
|
-
{{else}}
|
|
48
|
-
{children}
|
|
49
|
-
{{/unless}}
|
|
50
|
+
{children}
|
|
51
|
+
{{/unless}}
|
|
50
52
|
{{/if}}
|
|
51
53
|
<Toaster richColors />
|
|
52
54
|
</ThemeProvider>
|
|
@@ -13,18 +13,18 @@ import { ThemeProvider } from "./components/theme-provider";
|
|
|
13
13
|
import { Toaster } from "./components/ui/sonner";
|
|
14
14
|
|
|
15
15
|
{{#if (eq backend "convex")}}
|
|
16
|
-
|
|
16
|
+
import { ConvexProvider, ConvexReactClient } from "convex/react";
|
|
17
17
|
{{else}}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
18
|
+
{{#unless (eq api "none")}}
|
|
19
|
+
import { QueryClientProvider } from "@tanstack/react-query";
|
|
20
|
+
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
|
|
21
|
+
{{#if (eq api "orpc")}}
|
|
22
|
+
import { queryClient } from "./utils/orpc";
|
|
23
|
+
{{/if}}
|
|
24
|
+
{{#if (eq api "trpc")}}
|
|
25
|
+
import { queryClient } from "./utils/trpc";
|
|
26
|
+
{{/if}}
|
|
27
|
+
{{/unless}}
|
|
28
28
|
{{/if}}
|
|
29
29
|
|
|
30
30
|
export const links: Route.LinksFunction = () => [
|
|
@@ -62,43 +62,26 @@ export function Layout({ children }: { children: React.ReactNode }) {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
{{#if (eq backend "convex")}}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
65
|
+
export default function App() {
|
|
66
|
+
const convex = new ConvexReactClient(
|
|
67
|
+
import.meta.env.VITE_CONVEX_URL as string,
|
|
68
|
+
);
|
|
69
|
+
return (
|
|
70
|
+
<ConvexProvider client={convex}>
|
|
71
|
+
<ThemeProvider defaultTheme="dark" storageKey="vite-ui-theme">
|
|
72
|
+
<div className="grid grid-rows-[auto_1fr] h-svh">
|
|
73
|
+
<Header />
|
|
74
|
+
<Outlet />
|
|
75
|
+
</div>
|
|
76
|
+
<Toaster richColors />
|
|
77
|
+
</ThemeProvider>
|
|
78
|
+
</ConvexProvider>
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
81
|
{{else if (eq api "orpc")}}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
<ORPCContext.Provider value={orpc}>
|
|
86
|
-
<ThemeProvider defaultTheme="dark" storageKey="vite-ui-theme">
|
|
87
|
-
<div className="grid grid-rows-[auto_1fr] h-svh">
|
|
88
|
-
<Header />
|
|
89
|
-
<Outlet />
|
|
90
|
-
</div>
|
|
91
|
-
<Toaster richColors />
|
|
92
|
-
</ThemeProvider>
|
|
93
|
-
</ORPCContext.Provider>
|
|
94
|
-
<ReactQueryDevtools position="bottom" buttonPosition="bottom-right" />
|
|
95
|
-
</QueryClientProvider>
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
{{else if (eq api "trpc")}}
|
|
99
|
-
export default function App() {
|
|
100
|
-
return (
|
|
101
|
-
<QueryClientProvider client={queryClient}>
|
|
82
|
+
export default function App() {
|
|
83
|
+
return (
|
|
84
|
+
<QueryClientProvider client={queryClient}>
|
|
102
85
|
<ThemeProvider defaultTheme="dark" storageKey="vite-ui-theme">
|
|
103
86
|
<div className="grid grid-rows-[auto_1fr] h-svh">
|
|
104
87
|
<Header />
|
|
@@ -106,13 +89,14 @@ export function Layout({ children }: { children: React.ReactNode }) {
|
|
|
106
89
|
</div>
|
|
107
90
|
<Toaster richColors />
|
|
108
91
|
</ThemeProvider>
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
{{else}}
|
|
114
|
-
|
|
115
|
-
|
|
92
|
+
<ReactQueryDevtools position="bottom" buttonPosition="bottom-right" />
|
|
93
|
+
</QueryClientProvider>
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
{{else if (eq api "trpc")}}
|
|
97
|
+
export default function App() {
|
|
98
|
+
return (
|
|
99
|
+
<QueryClientProvider client={queryClient}>
|
|
116
100
|
<ThemeProvider defaultTheme="dark" storageKey="vite-ui-theme">
|
|
117
101
|
<div className="grid grid-rows-[auto_1fr] h-svh">
|
|
118
102
|
<Header />
|
|
@@ -120,8 +104,22 @@ export function Layout({ children }: { children: React.ReactNode }) {
|
|
|
120
104
|
</div>
|
|
121
105
|
<Toaster richColors />
|
|
122
106
|
</ThemeProvider>
|
|
123
|
-
|
|
124
|
-
|
|
107
|
+
<ReactQueryDevtools position="bottom" buttonPosition="bottom-right" />
|
|
108
|
+
</QueryClientProvider>
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
{{else}}
|
|
112
|
+
export default function App() {
|
|
113
|
+
return (
|
|
114
|
+
<ThemeProvider defaultTheme="dark" storageKey="vite-ui-theme">
|
|
115
|
+
<div className="grid grid-rows-[auto_1fr] h-svh">
|
|
116
|
+
<Header />
|
|
117
|
+
<Outlet />
|
|
118
|
+
</div>
|
|
119
|
+
<Toaster richColors />
|
|
120
|
+
</ThemeProvider>
|
|
121
|
+
);
|
|
122
|
+
}
|
|
125
123
|
{{/if}}
|
|
126
124
|
|
|
127
125
|
export function ErrorBoundary({ error }: Route.ErrorBoundaryProps) {
|
|
@@ -75,7 +75,6 @@ function RootComponent() {
|
|
|
75
75
|
<>
|
|
76
76
|
<HeadContent />
|
|
77
77
|
{{#if (eq api "orpc")}}
|
|
78
|
-
<ORPCContext.Provider value={orpcUtils}>
|
|
79
78
|
<ThemeProvider defaultTheme="dark" storageKey="vite-ui-theme">
|
|
80
79
|
<div className="grid grid-rows-[auto_1fr] h-svh">
|
|
81
80
|
<Header />
|
|
@@ -83,7 +82,6 @@ function RootComponent() {
|
|
|
83
82
|
</div>
|
|
84
83
|
<Toaster richColors />
|
|
85
84
|
</ThemeProvider>
|
|
86
|
-
</ORPCContext.Provider>
|
|
87
85
|
{{else}}
|
|
88
86
|
<ThemeProvider defaultTheme="dark" storageKey="vite-ui-theme">
|
|
89
87
|
<div className="grid grid-rows-[auto_1fr] h-svh">
|
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
"@radix-ui/react-label": "^2.1.2",
|
|
15
15
|
"@radix-ui/react-slot": "^1.1.2",
|
|
16
16
|
"@tanstack/react-form": "^1.0.5",
|
|
17
|
-
"@tailwindcss/vite": "^4.
|
|
18
|
-
"@tanstack/react-query": "^5.
|
|
19
|
-
"@tanstack/react-router": "^1.
|
|
20
|
-
"@tanstack/react-router-with-query": "^1.
|
|
21
|
-
"@tanstack/react-start": "^1.
|
|
22
|
-
"@tanstack/router-plugin": "^1.
|
|
17
|
+
"@tailwindcss/vite": "^4.1.8",
|
|
18
|
+
"@tanstack/react-query": "^5.80.5",
|
|
19
|
+
"@tanstack/react-router": "^1.120.15",
|
|
20
|
+
"@tanstack/react-router-with-query": "^1.120.15",
|
|
21
|
+
"@tanstack/react-start": "^1.120.15",
|
|
22
|
+
"@tanstack/router-plugin": "^1.120.15",
|
|
23
23
|
"class-variance-authority": "^0.7.1",
|
|
24
24
|
"clsx": "^2.1.1",
|
|
25
25
|
"lucide-react": "^0.473.0",
|
|
26
26
|
"next-themes": "^0.4.6",
|
|
27
|
-
"react": "^19.
|
|
28
|
-
"react-dom": "^19.
|
|
27
|
+
"react": "^19.1.0",
|
|
28
|
+
"react-dom": "^19.1.0",
|
|
29
29
|
"sonner": "^2.0.3",
|
|
30
30
|
"tailwindcss": "^4.1.3",
|
|
31
31
|
"tailwind-merge": "^2.6.0",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"zod": "^3.25.16"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@tanstack/react-router-devtools": "^1.
|
|
38
|
+
"@tanstack/react-router-devtools": "^1.120.15",
|
|
39
39
|
"@testing-library/dom": "^10.4.0",
|
|
40
40
|
"@testing-library/react": "^16.2.0",
|
|
41
|
-
"@types/react": "^19.
|
|
42
|
-
"@types/react-dom": "^19.
|
|
41
|
+
"@types/react": "^19.1.6",
|
|
42
|
+
"@types/react-dom": "^19.1.6",
|
|
43
43
|
"@vitejs/plugin-react": "^4.3.4",
|
|
44
44
|
"jsdom": "^26.0.0",
|
|
45
45
|
"typescript": "^5.7.2",
|
|
46
|
-
"vite": "^6.
|
|
46
|
+
"vite": "^6.3.5",
|
|
47
47
|
"web-vitals": "^4.2.4"
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -20,8 +20,8 @@ import { toast } from "sonner";
|
|
|
20
20
|
import type { AppRouter } from "../../server/src/routers";
|
|
21
21
|
import { TRPCProvider } from "./utils/trpc";
|
|
22
22
|
{{else if (eq api "orpc")}}
|
|
23
|
-
import {
|
|
24
|
-
import { orpc,
|
|
23
|
+
import { QueryClientProvider } from "@tanstack/react-query";
|
|
24
|
+
import { orpc, queryClient } from "./utils/orpc";
|
|
25
25
|
{{/if}}
|
|
26
26
|
{{/if}}
|
|
27
27
|
|
|
@@ -99,7 +99,6 @@ const trpc = createTRPCOptionsProxy({
|
|
|
99
99
|
queryClient: queryClient,
|
|
100
100
|
});
|
|
101
101
|
{{else if (eq api "orpc")}}
|
|
102
|
-
const queryClient = orpcQueryClient;
|
|
103
102
|
{{/if}}
|
|
104
103
|
|
|
105
104
|
export const createRouter = () => {
|
|
@@ -127,9 +126,7 @@ export const createRouter = () => {
|
|
|
127
126
|
{{else if (eq api "orpc")}}
|
|
128
127
|
Wrap: ({ children }) => (
|
|
129
128
|
<QueryClientProvider client={queryClient}>
|
|
130
|
-
|
|
131
|
-
{children}
|
|
132
|
-
</ORPCContext.Provider>
|
|
129
|
+
{children}
|
|
133
130
|
</QueryClientProvider>
|
|
134
131
|
),
|
|
135
132
|
{{else}}
|
|
@@ -9,7 +9,7 @@ import { useQuery } from "@tanstack/react-query";
|
|
|
9
9
|
import { useTRPC } from "@/utils/trpc";
|
|
10
10
|
{{/if}}
|
|
11
11
|
{{#if (eq api "orpc")}}
|
|
12
|
-
import {
|
|
12
|
+
import { orpc } from "@/utils/orpc";
|
|
13
13
|
{{/if}}
|
|
14
14
|
{{/if}}
|
|
15
15
|
|
|
@@ -40,7 +40,6 @@ function HomeComponent() {
|
|
|
40
40
|
const trpc = useTRPC();
|
|
41
41
|
const healthCheck = useQuery(trpc.healthCheck.queryOptions());
|
|
42
42
|
{{else if (eq api "orpc")}}
|
|
43
|
-
const orpc = useORPC();
|
|
44
43
|
const healthCheck = useQuery(orpc.healthCheck.queryOptions());
|
|
45
44
|
{{/if}}
|
|
46
45
|
|
|
@@ -9,17 +9,11 @@
|
|
|
9
9
|
"test": "vitest run"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@orpc/client": "^1.1.1",
|
|
13
|
-
"@orpc/server": "^1.1.1",
|
|
14
|
-
"@orpc/solid-query": "^1.1.1",
|
|
15
12
|
"@tailwindcss/vite": "^4.0.6",
|
|
16
13
|
"@tanstack/router-plugin": "^1.109.2",
|
|
17
14
|
"@tanstack/solid-form": "^1.9.0",
|
|
18
|
-
"@tanstack/solid-query": "^5.75.0",
|
|
19
|
-
"@tanstack/solid-query-devtools": "^5.75.0",
|
|
20
15
|
"@tanstack/solid-router": "^1.110.0",
|
|
21
16
|
"@tanstack/solid-router-devtools": "^1.109.2",
|
|
22
|
-
"better-auth": "^1.2.7",
|
|
23
17
|
"lucide-solid": "^0.507.0",
|
|
24
18
|
"solid-js": "^1.9.4",
|
|
25
19
|
"tailwindcss": "^4.0.6",
|