Skip to content

Commit a64fd70

Browse files
committed
chore: moving to dump readdir
1 parent da8337f commit a64fd70

File tree

19 files changed

+368
-216
lines changed

19 files changed

+368
-216
lines changed

packages/cta-core/src/types.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ export type AddOn = {
101101
routes: Array<{
102102
url: string
103103
name: string
104+
path: string
105+
jsName: string
104106
}>
105107
packageAdditions: {
106108
dependencies?: Record<string, string>
@@ -116,6 +118,11 @@ export type AddOn = {
116118
shadcnComponents?: Array<string>
117119
warning?: string
118120
dependsOn?: Array<string>
121+
integrations?: Array<{
122+
type: 'provider' | 'root-provider' | 'layout' | 'header-user'
123+
path: string
124+
jsName: string
125+
}>
119126
variables?: Array<Variable>
120127

121128
files?: Record<string, string>

templates/react-cra/add-ons/clerk/info.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,21 @@
77
"routes": [
88
{
99
"url": "/demo/clerk",
10-
"name": "Clerk"
10+
"name": "Clerk",
11+
"path": "src/routes/demo.clerk.tsx",
12+
"jsName": "ClerkDemo"
13+
}
14+
],
15+
"integrations": [
16+
{
17+
"type": "header-user",
18+
"jsName": "ClerkHeader",
19+
"path": "src/integrations/clerk/header-user.tsx"
20+
},
21+
{
22+
"type": "provider",
23+
"jsName": "ClerkProvider",
24+
"path": "src/integrations/clerk/provider.tsx"
1125
}
1226
]
1327
}

templates/react-cra/add-ons/convex/info.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,16 @@
77
"routes": [
88
{
99
"url": "/demo/convex",
10-
"name": "Convex"
10+
"name": "Convex",
11+
"path": "src/routes/demo.convex.tsx",
12+
"jsName": "ConvexDemo"
13+
}
14+
],
15+
"integrations": [
16+
{
17+
"type": "provider",
18+
"path": "src/integrations/convex/provider.tsx",
19+
"jsName": "ConvexProvider"
1120
}
1221
]
1322
}

templates/react-cra/add-ons/form/info.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@
77
"routes": [
88
{
99
"url": "/demo/form/simple",
10-
"name": "Simple Form"
10+
"name": "Simple Form",
11+
"path": "src/routes/demo.form.simple.tsx",
12+
"jsName": "FormSimpleDemo"
1113
},
1214
{
1315
"url": "/demo/form/address",
14-
"name": "Address Form"
16+
"name": "Address Form",
17+
"path": "src/routes/demo.form.address.tsx",
18+
"jsName": "FormAddressDemo"
1519
}
1620
],
1721
"shadcnComponents": [

templates/react-cra/add-ons/sentry/info.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"routes": [
88
{
99
"url": "/demo/sentry/testing",
10-
"name": "Sentry"
10+
"name": "Sentry",
11+
"path": "src/routes/demo.sentry.testing.tsx",
12+
"jsName": "SentryDemo"
1113
}
1214
],
1315
"dependsOn": ["start"]

templates/react-cra/add-ons/start/info.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@
88
"routes": [
99
{
1010
"url": "/demo/start/server-funcs",
11-
"name": "Start - Server Functions"
11+
"name": "Start - Server Functions",
12+
"path": "src/routes/demo.start.server-funcs.tsx",
13+
"jsName": "StartServerFuncsDemo"
1214
},
1315
{
1416
"url": "/demo/start/api-request",
15-
"name": "Start - API Request"
17+
"name": "Start - API Request",
18+
"path": "src/routes/demo.start.api-request.tsx",
19+
"jsName": "StartApiRequestDemo"
1620
}
1721
]
1822
}

templates/react-cra/add-ons/store/info.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"routes": [
88
{
99
"url": "/demo/store",
10-
"name": "Store"
10+
"name": "Store",
11+
"path": "src/routes/demo.store.tsx",
12+
"jsName": "StoreDemo"
1113
}
1214
]
1315
}

templates/react-cra/add-ons/tRPC/info.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@
44
"phase": "add-on",
55
"templates": ["file-router"],
66
"link": "https://trpc.io/",
7-
"routes": [],
87
"dependsOn": ["tanstack-query", "start"]
98
}

templates/react-cra/add-ons/table/info.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"routes": [
88
{
99
"url": "/demo/table",
10-
"name": "TanStack Table"
10+
"name": "TanStack Table",
11+
"path": "src/routes/demo.table.tsx",
12+
"jsName": "TableDemo"
1113
}
1214
]
1315
}

templates/react-cra/add-ons/tanstack-query/info.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,21 @@
77
"routes": [
88
{
99
"url": "/demo/tanstack-query",
10-
"name": "TanStack Query"
10+
"name": "TanStack Query",
11+
"path": "src/routes/demo.tanstack-query.tsx",
12+
"jsName": "TanStackQueryDemo"
13+
}
14+
],
15+
"integrations": [
16+
{
17+
"type": "root-provider",
18+
"path": "src/integrations/tanstack-query/root-provider.tsx",
19+
"jsName": "TanStackQueryProvider"
20+
},
21+
{
22+
"type": "layout",
23+
"path": "src/integrations/tanstack-query/layout.tsx",
24+
"jsName": "TanStackQueryLayout"
1125
}
1226
]
1327
}

templates/react-cra/examples/tanchat/info.json

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,26 @@
77
"routes": [
88
{
99
"url": "/example/chat",
10-
"name": "Chat"
10+
"name": "Chat",
11+
"path": "src/routes/example.chat.tsx",
12+
"jsName": "ChatDemo"
1113
},
1214
{
1315
"url": "/example/guitars",
14-
"name": "Guitar Demo"
16+
"name": "Guitar Demo",
17+
"path": "src/routes/example.guitars.tsx",
18+
"jsName": "GuitarDemo"
19+
},
20+
{
21+
"path": "src/routes/example.guitars/$guitarId.tsx",
22+
"jsName": "GuitarById"
23+
}
24+
],
25+
"integrations": [
26+
{
27+
"type": "header-user",
28+
"path": "src/integrations/tanchat/header-user.tsx",
29+
"jsName": "TanStackChatHeaderUser"
1530
}
1631
],
1732
"dependsOn": ["start", "store"],

templates/solid/add-ons/form/info.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"routes": [
88
{
99
"url": "/demo/form",
10-
"name": "Form"
10+
"name": "Form",
11+
"path": "src/routes/demo.form.tsx",
12+
"jsName": "FormDemo"
1113
}
1214
]
1315
}

templates/solid/add-ons/sentry/info.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"routes": [
88
{
99
"url": "/demo/sentry/bad-event-handler",
10-
"name": "Sentry"
10+
"name": "Sentry",
11+
"path": "src/routes/demo.sentry.bad-event-handler.tsx",
12+
"jsName": "SentryBadEventHandlerDemo"
1113
}
1214
]
1315
}

templates/solid/add-ons/start/info.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"routes": [
99
{
1010
"url": "/demo/start/server-funcs",
11-
"name": "Start - Server Functions"
11+
"name": "Start - Server Functions",
12+
"path": "src/routes/demo.start.server-funcs.tsx",
13+
"jsName": "StartServerFuncsDemo"
1214
}
1315
]
1416
}

templates/solid/add-ons/store/info.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"routes": [
88
{
99
"url": "/demo/store",
10-
"name": "Store"
10+
"name": "Store",
11+
"path": "src/routes/demo.store.tsx",
12+
"jsName": "StoreDemo"
1113
}
1214
]
1315
}

templates/solid/add-ons/tanstack-query/info.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,21 @@
77
"routes": [
88
{
99
"url": "/demo/tanstack-query",
10-
"name": "TanStack Query"
10+
"name": "TanStack Query",
11+
"path": "src/routes/demo.tanstack-query.tsx",
12+
"jsName": "TanStackQueryDemo"
13+
}
14+
],
15+
"integrations": [
16+
{
17+
"type": "provider",
18+
"path": "src/integrations/tanstack-query/provider.tsx",
19+
"jsName": "TanStackQueryProvider"
20+
},
21+
{
22+
"type": "header-user",
23+
"path": "src/integrations/tanstack-query/header-user.tsx",
24+
"jsName": "TanStackQueryHeaderUser"
1125
}
1226
]
1327
}

0 commit comments

Comments
 (0)