File tree Expand file tree Collapse file tree 7 files changed +37
-16
lines changed
templates/react/add-on/tanstack-query/assets/src/integrations/tanstack-query Expand file tree Collapse file tree 7 files changed +37
-16
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ To help accelerate the migration away from `create-react-app` we created the `cr
88
99To maintain compatability with ` create-react-app ` you can build a new application by running:
1010
11- | Command | Description |
12- | -------------------------------------------------------------------------------- | ------------------------------- ------------------ |
13- | ` pnpx create-start-app@latest my-app ` | Create a new app |
14- | ` pnpx create-start-app@latest my-app --framework solid ` | Create a Solid app |
11+ | Command | Description |
12+ | ------------------------------------------------------- | ------------------ |
13+ | ` pnpx create-start-app@latest my-app ` | Create a new app |
14+ | ` pnpx create-start-app@latest my-app --framework solid ` | Create a Solid app |
1515
1616If you don't specify a project name, the CLI will walk you through an interactive setup process:
1717
@@ -101,9 +101,18 @@ You can launch the `create-start-app` CLI with the `--mcp` flag to enable MCP su
101101pnpx create-start-app@latest --mcp
102102```
103103
104- Shown below is the configuration for MCP support in Cursor.
105-
106- ![ MCP Configuration] ( ./images/mcp-configuration.png )
104+ Here is the JSON configuration for MCP support in many MCP clients.
105+
106+ ``` json
107+ {
108+ "mcpServers" : {
109+ "create-start-app" : {
110+ "command" : " pnpx" ,
111+ "args" : [" create-start-app@latest" , " --mcp" ]
112+ }
113+ }
114+ }
115+ ```
107116
108117# Contributing
109118
Original file line number Diff line number Diff line change 1010 },
1111 "repository" : {
1212 "type" : " git" ,
13- "url" : " https://github.com/TanStack/create-start -app.git"
13+ "url" : " https://github.com/TanStack/create-router -app.git"
1414 },
1515 "homepage" : " https://tanstack.com/router" ,
1616 "funding" : {
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ To help accelerate the migration away from `create-react-app` we created the `cr
88
99To maintain compatability with ` create-react-app ` you can build a new application by running:
1010
11- | Command | Description |
12- | -------------------------------------------------------------------------------- | ------------------------------------------------- |
11+ | Command | Description |
12+ | --------------------------------------------------------------------------------- | ------------------------------------------------- |
1313| ` pnpx create-tsrouter-app@latest my-app ` | Create a new app |
1414| ` pnpx create-tsrouter-app@latest my-app --template file-router ` | Create a new file based app |
1515| ` pnpx create-tsrouter-app@latest my-app --template typescript ` | Create a new TypeScript app using the Code Router |
@@ -142,9 +142,18 @@ You can launch the `create-tsrouter-app` CLI with the `--mcp` flag to enable MCP
142142pnpx create-tsrouter-app@latest --mcp
143143```
144144
145- Shown below is the configuration for MCP support in Cursor.
146-
147- ![ MCP Configuration] ( ./images/mcp-configuration.png )
145+ Here is the JSON configuration for MCP support in many MCP clients.
146+
147+ ``` json
148+ {
149+ "mcpServers" : {
150+ "create-tsrouter-app" : {
151+ "command" : " pnpx" ,
152+ "args" : [" create-tsrouter-app@latest" , " --mcp" ]
153+ }
154+ }
155+ }
156+ ```
148157
149158# Contributing
150159
Original file line number Diff line number Diff line change @@ -133,7 +133,10 @@ export function cli({
133133 )
134134 . option ( '--list-add-ons' , 'list all available add-ons' , false )
135135 . option ( '--no-git' , 'do not create a git repository' )
136- . option ( '--target-dir <path>' , 'the directory to create the project in' )
136+ . option (
137+ '--target-dir <path>' ,
138+ 'the target directory for the application root' ,
139+ )
137140 . option ( '--mcp' , 'run the MCP server' , false )
138141 . option ( '--mcp-sse' , 'run the MCP server in SSE mode' , false )
139142
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ function getUrl() {
1313 if (typeof window !== " undefined" ) return " " ;
1414 return ` http://localhost:${ process .env .PORT ?? 3000 }` ;
1515 })();
16- return base + " /api/trpc" ;
16+ return ` ${ base} / api/ trpc` ;
1717}
1818
1919export const trpcClient = createTRPCClient<TRPCRouter>({
@@ -67,4 +67,4 @@ export function Provider({ children }: { children: React.ReactNode }) {
6767 <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
6868 )
6969}
70- <% } %>
70+ <% } %>
You can’t perform that action at this time.
0 commit comments