Skip to content

chore: devinxi start example #1584

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions examples/react/tanstack-start/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ yarn.lock
.env
.vercel
.output
.vinxi

/build/
/api/
/server/build
/public/build
.vinxi
# Sentry Config File
.env.sentry-build-plugin
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
.tanstack
15 changes: 0 additions & 15 deletions examples/react/tanstack-start/app.config.ts

This file was deleted.

8 changes: 0 additions & 8 deletions examples/react/tanstack-start/app/client.tsx

This file was deleted.

13 changes: 0 additions & 13 deletions examples/react/tanstack-start/app/ssr.tsx

This file was deleted.

13 changes: 6 additions & 7 deletions examples/react/tanstack-start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@
"sideEffects": false,
"type": "module",
"scripts": {
"dev": "vinxi dev",
"_build": "vinxi build",
"start": "vinxi start"
"dev": "vite dev",
"_build": "vite build && tsc --noEmit",
"start": "node .output/server/index.mjs"
},
"dependencies": {
"@tanstack/react-form": "^1.12.3",
"@tanstack/react-router": "^1.121.16",
"@tanstack/react-start": "^1.121.16",
"@tanstack/react-router": "^1.121.21",
"@tanstack/react-start": "^1.121.23",
"@tanstack/react-store": "^0.7.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"vinxi": "^0.5.7"
"react-dom": "^19.0.0"
},
"devDependencies": {
"@types/node": "^22.10.6",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,48 +8,25 @@
// You should NOT make any changes in this file as it will be overwritten.
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.

// Import Routes
import { Route as rootRouteImport } from './routes/__root'
import { Route as IndexRouteImport } from './routes/index'

import { Route as rootRoute } from './routes/__root'
import { Route as IndexImport } from './routes/index'

// Create/Update Routes

const IndexRoute = IndexImport.update({
const IndexRoute = IndexRouteImport.update({
id: '/',
path: '/',
getParentRoute: () => rootRoute,
getParentRoute: () => rootRouteImport,
} as any)

// Populate the FileRoutesByPath interface

declare module '@tanstack/react-router' {
interface FileRoutesByPath {
'/': {
id: '/'
path: '/'
fullPath: '/'
preLoaderRoute: typeof IndexImport
parentRoute: typeof rootRoute
}
}
}

// Create and export the route tree

export interface FileRoutesByFullPath {
'/': typeof IndexRoute
}

export interface FileRoutesByTo {
'/': typeof IndexRoute
}

export interface FileRoutesById {
__root__: typeof rootRoute
__root__: typeof rootRouteImport
'/': typeof IndexRoute
}

export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths: '/'
Expand All @@ -58,31 +35,25 @@ export interface FileRouteTypes {
id: '__root__' | '/'
fileRoutesById: FileRoutesById
}

export interface RootRouteChildren {
IndexRoute: typeof IndexRoute
}

declare module '@tanstack/react-router' {
interface FileRoutesByPath {
'/': {
id: '/'
path: '/'
fullPath: '/'
preLoaderRoute: typeof IndexRouteImport
parentRoute: typeof rootRouteImport
}
}
}

const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
}

export const routeTree = rootRoute
export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren)
._addFileTypes<FileRouteTypes>()

/* ROUTE_MANIFEST_START
{
"routes": {
"__root__": {
"filePath": "__root.tsx",
"children": [
"/"
]
},
"/": {
"filePath": "index.tsx"
}
}
}
ROUTE_MANIFEST_END */
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
Scripts,
createRootRoute,
} from '@tanstack/react-router'

import type { ReactNode } from 'react'

export const Route = createRootRoute({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { createFileRoute } from '@tanstack/react-router'
import { mergeForm, useForm, useTransform } from '@tanstack/react-form'
import { useStore } from '@tanstack/react-store'
import { getFormDataFromServer, handleForm } from '~/utils/form'
import { formOpts } from '~/utils/form-isomorphic'
import { getFormDataFromServer, handleForm } from 'src/utils/form'
import { formOpts } from 'src/utils/form-isomorphic'

export const Route = createFileRoute('/')({
component: Home,
Expand Down
2 changes: 1 addition & 1 deletion examples/react/tanstack-start/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"forceConsistentCasingInFileNames": true,
"baseUrl": ".",
"paths": {
"~/*": ["./app/*"]
"~/*": ["./src/*"]
},
"noEmit": true
}
Expand Down
15 changes: 15 additions & 0 deletions examples/react/tanstack-start/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { tanstackStart } from '@tanstack/react-start/plugin/vite'
import { defineConfig } from 'vite'
import tsConfigPaths from 'vite-tsconfig-paths'

export default defineConfig({
server: {
port: 3000,
},
plugins: [
tsConfigPaths({
projects: ['./tsconfig.json'],
}),
tanstackStart(),
],
})
2 changes: 1 addition & 1 deletion knip.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://unpkg.com/knip@5/schema.json",
"ignoreDependencies": ["@tanstack/react-start", "vinxi"],
"ignoreDependencies": ["@tanstack/react-start"],
"ignoreWorkspaces": ["examples/**"]
}
11 changes: 3 additions & 8 deletions packages/react-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,27 +87,22 @@
"devalue": "^5.1.1"
},
"devDependencies": {
"@tanstack/react-start": "^1.121.16",
"@tanstack/react-start": "^1.121.23",
"@types/react": "^19.0.7",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^4.5.2",
"eslint-plugin-react-compiler": "19.0.0-beta-ebf51a3-20250411",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"vinxi": "^0.5.7",
"vite": "^6.3.5"
},
"peerDependencies": {
"@tanstack/react-start": "^1.112.0",
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"vinxi": "^0.5.0"
"@tanstack/react-start": "^1.121.23",
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
},
"peerDependenciesMeta": {
"@tanstack/react-start": {
"optional": true
},
"vinxi": {
"optional": true
}
}
}
Loading