Skip to content

Commit cf17756

Browse files
committed
Intial commit
1 parent d006754 commit cf17756

9 files changed

Lines changed: 257 additions & 76 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
/.cache
2+
/.nitro
3+
/.output
4+
/.tanstack
25
/coverage
36
/dist
47
/lib

index.html

Lines changed: 0 additions & 13 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,14 @@
5959
"@ianvs/prettier-plugin-sort-imports": "^4.5.1",
6060
"@linaria/core": "^6.3.0",
6161
"@tanstack/react-router": "^1.128.0",
62-
"@tanstack/router-plugin": "^1.128.0",
62+
"@tanstack/react-start": "^1.130.10",
6363
"@types/node": "^24.0.14",
6464
"@types/react": "^19.1.3",
6565
"@types/react-dom": "^19.1.3",
6666
"@typescript-eslint/eslint-plugin": "^8.37.0",
6767
"@typescript-eslint/parser": "^8.37.0",
68-
"@vitejs/plugin-react-oxc": "^0.2.3",
68+
"@vitejs/plugin-react": "^4.7.0",
69+
"@vitejs/plugin-react-oxc": "^0.3.0",
6970
"@vitest/browser": "^3.2.4",
7071
"@vitest/coverage-v8": "^3.2.4",
7172
"@vitest/eslint-plugin": "^1.3.4",

vite.config.ts

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { tanstackRouter } from '@tanstack/router-plugin/vite';
1+
import { tanstackStart } from '@tanstack/react-start/plugin/vite';
22
import react from '@vitejs/plugin-react-oxc';
33
import wyw from '@wyw-in-js/vite';
44
import { defineConfig } from 'vite';
@@ -44,7 +44,6 @@ const dragFill: BrowserCommand<[from: string, to: string]> = async (context, fro
4444
const viewport = { width: 1920, height: 1080 } as const;
4545

4646
export default defineConfig(({ command, isPreview }) => ({
47-
base: '/react-data-grid/',
4847
cacheDir: '.cache/vite',
4948
clearScreen: false,
5049
build: {
@@ -56,12 +55,18 @@ export default defineConfig(({ command, isPreview }) => ({
5655
},
5756
plugins: [
5857
(!isTest || isPreview) &&
59-
tanstackRouter({
60-
target: 'react',
61-
generatedRouteTree: 'website/routeTree.gen.ts',
62-
routesDirectory: 'website/routes',
63-
autoCodeSplitting: true,
64-
verboseFileRoutes: false
58+
tanstackStart({
59+
customViteReactPlugin: true,
60+
tsr: {
61+
srcDirectory: 'website',
62+
// @ts-expect-error types are not correct
63+
autoCodeSplitting: true,
64+
verboseFileRoutes: false
65+
},
66+
prerender: {
67+
enabled: true,
68+
crawlLinks: true
69+
}
6570
}),
6671
react({
6772
exclude: ['./.cache/**/*']

website/root.css

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,13 @@ body {
1616
}
1717

1818
body {
19+
display: grid;
20+
grid-template-columns: auto 1fr;
1921
color-scheme: var(--rdg-color-scheme, light dark);
2022
background-color: light-dark(#fff, hsl(0deg 0% 10%));
2123
color: light-dark(#111, #fff);
2224
}
2325

24-
#root {
25-
display: grid;
26-
grid-template-columns: auto 1fr;
27-
}
28-
2926
.fill-grid {
3027
block-size: 100%;
3128
}

website/root.tsx

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)