Skip to content
Merged
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
1,354 changes: 1,048 additions & 306 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

25 changes: 9 additions & 16 deletions rsbuild/tanstack-start-rsc/.gitignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
node_modules
package-lock.json
yarn.lock

.DS_Store
.cache
dist
dist-ssr
*.local
.env
.vercel
.output
.nitro
/build/
/api/
/server/build
/public/build# Sentry Config File
.env.sentry-build-plugin
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
.tanstack
.tanstack
.wrangler
.output
.vinxi
__unconfig*
todos.json
40 changes: 18 additions & 22 deletions rsbuild/tanstack-start-rsc/README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,32 @@
# TanStack Start - Basic Example
Welcome to your new TanStack Start app!

This is the basic TanStack Start example, demonstrating the fundamentals of building applications with TanStack Router and TanStack Start.
# Getting Started

- [TanStack Router Docs](https://tanstack.com/router)
To run this application:

It's deployed automagically with Netlify!

- [Netlify](https://netlify.com/)
```bash
pnpm install
pnpm dev
```

## Start a new project based on this example
# Building For Production

To start a new project based on this example, run:
To build this application for production:

```sh
npx gitpick TanStack/router/tree/main/examples/react/start-basic start-basic
```bash
pnpm build
```

## Getting Started
## Styling

From your terminal:
This project uses [Tailwind CSS](https://tailwindcss.com/) for styling.

```sh
pnpm install
pnpm dev
```
## Routing

This starts your app in development mode, rebuilding assets on file changes.
This project uses [TanStack Router](https://tanstack.com/router) with file-based routing. Routes are managed as files in `src/routes`.

## Build
# Learn More

To build the app for production:
You can learn more about all of the offerings from TanStack in the [TanStack documentation](https://tanstack.com).

```sh
pnpm build
```
For TanStack Start specific documentation, visit [TanStack Start](https://tanstack.com/start).
10 changes: 5 additions & 5 deletions rsbuild/tanstack-start-rsc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@
"@tanstack/react-router-devtools": "^1.167.0",
"@tanstack/react-start": "^1.168.19",
"dexie": "^4.0.10",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"srvx": "^0.11.16",
"tailwindcss": "^4.3.0",
"zod": "^4.4.3",
"zustand": "^5.0.10"
},
"devDependencies": {
"@rsbuild/core": "^2.0.9",
"@rsbuild/plugin-react": "^2.0.0",
"@rsbuild/core": "^2.0.11",
"@rsbuild/plugin-react": "^2.0.1",
"@rsbuild/plugin-tailwindcss": "^2.0.1",
"@types/node": "22.10.2",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.2",
"tailwindcss": "^4.1.18",
"typescript": "^6.0.3"
}
}
25 changes: 25 additions & 0 deletions rsbuild/tanstack-start-rsc/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"short_name": "TanStack App",
"name": "Create TanStack App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
3 changes: 3 additions & 0 deletions rsbuild/tanstack-start-rsc/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
19 changes: 0 additions & 19 deletions rsbuild/tanstack-start-rsc/public/site.webmanifest

This file was deleted.

32 changes: 20 additions & 12 deletions rsbuild/tanstack-start-rsc/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
{
"include": ["**/*.ts", "**/*.tsx", "**/*.d.ts"],
"include": ["**/*.ts", "**/*.tsx"],
"compilerOptions": {
"strict": true,
"esModuleInterop": true,
"target": "ES2022",
"jsx": "react-jsx",
"module": "ESNext",
"moduleResolution": "Bundler",
"lib": ["DOM", "DOM.Iterable", "ES2024"],
"isolatedModules": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"target": "ES2024",
"allowJs": true,
"forceConsistentCasingInFileNames": true,
"paths": {
"#/*": ["./src/*"],
"@/*": ["./src/*"],
"~/*": ["./src/*"]
Comment on lines 7 to 10
},
Comment thread
chenjiahan marked this conversation as resolved.
"noEmit": true
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"types": ["node"],

/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,

/* Linting */
"skipLibCheck": true,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
}
}
13 changes: 13 additions & 0 deletions rsbuild/tanstack-start/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
node_modules
.DS_Store
dist
dist-ssr
*.local
.env
.nitro
.tanstack
.wrangler
.output
.vinxi
__unconfig*
todos.json
32 changes: 32 additions & 0 deletions rsbuild/tanstack-start/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Welcome to your new TanStack Start app!

# Getting Started

To run this application:

```bash
pnpm install
pnpm dev
```

# Building For Production

To build this application for production:

```bash
pnpm build
```

## Styling

This project uses [Tailwind CSS](https://tailwindcss.com/) for styling.

## Routing

This project uses [TanStack Router](https://tanstack.com/router) with file-based routing. Routes are managed as files in `src/routes`.

# Learn More

You can learn more about all of the offerings from TanStack in the [TanStack documentation](https://tanstack.com).

For TanStack Start specific documentation, visit [TanStack Start](https://tanstack.com/start).
33 changes: 33 additions & 0 deletions rsbuild/tanstack-start/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "@rsbuild-example/tanstack-start",
"private": true,
"type": "module",
"imports": {
"#/*": "./src/*"
},
"scripts": {
"dev": "rsbuild",
"build": "rsbuild build",
"preview": "rsbuild preview"
},
"dependencies": {
"@tanstack/react-devtools": "^0.10.5",
"@tanstack/react-router": "^1.170.11",
"@tanstack/react-router-devtools": "^1.167.0",
"@tanstack/react-start": "^1.168.19",
"@tanstack/router-plugin": "^1.168.14",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"tailwindcss": "^4.3.0"
},
"devDependencies": {
"@rsbuild/core": "^2.0.5",
"@rsbuild/plugin-react": "^2.0.0",
"@rsbuild/plugin-tailwindcss": "^2.0.1",
"@tailwindcss/typography": "^0.5.19",
"@types/node": "^25.6.2",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"typescript": "^6.0.3"
}
}
Binary file added rsbuild/tanstack-start/public/favicon.ico
Binary file not shown.
Binary file added rsbuild/tanstack-start/public/logo192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added rsbuild/tanstack-start/public/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions rsbuild/tanstack-start/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"short_name": "TanStack App",
"name": "Create TanStack App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
3 changes: 3 additions & 0 deletions rsbuild/tanstack-start/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
8 changes: 8 additions & 0 deletions rsbuild/tanstack-start/rsbuild.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from '@rsbuild/core';
import { pluginReact } from '@rsbuild/plugin-react';
import { pluginTailwindcss } from '@rsbuild/plugin-tailwindcss';
import { tanstackStart } from '@tanstack/react-start/plugin/rsbuild';

export default defineConfig({
plugins: [pluginReact(), pluginTailwindcss(), tanstackStart()],
});
42 changes: 42 additions & 0 deletions rsbuild/tanstack-start/src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
export default function Footer() {
const year = new Date().getFullYear();

return (
<footer className="mt-20 border-t border-[var(--line)] px-4 pb-14 pt-10 text-[var(--sea-ink-soft)]">
<div className="page-wrap flex flex-col items-center justify-between gap-4 text-center sm:flex-row sm:text-left">
<p className="m-0 text-sm">&copy; {year} Your name here. All rights reserved.</p>
<p className="island-kicker m-0">Built with TanStack Start</p>
</div>
<div className="mt-4 flex justify-center gap-4">
<a
href="https://x.com/tan_stack"
target="_blank"
rel="noreferrer"
className="rounded-xl p-2 text-[var(--sea-ink-soft)] transition hover:bg-[var(--link-bg-hover)] hover:text-[var(--sea-ink)]"
Comment on lines +11 to +15
>
<span className="sr-only">Follow TanStack on X</span>
<svg viewBox="0 0 16 16" aria-hidden="true" width="32" height="32">
<path
fill="currentColor"
d="M12.6 1h2.2L10 6.48 15.64 15h-4.41L7.78 9.82 3.23 15H1l5.14-5.84L.72 1h4.52l3.12 4.73L12.6 1zm-.77 12.67h1.22L4.57 2.26H3.26l8.57 11.41z"
/>
</svg>
</a>
<a
href="https://github.com/TanStack"
target="_blank"
rel="noreferrer"
className="rounded-xl p-2 text-[var(--sea-ink-soft)] transition hover:bg-[var(--link-bg-hover)] hover:text-[var(--sea-ink)]"
Comment on lines +25 to +29
>
<span className="sr-only">Go to TanStack GitHub</span>
<svg viewBox="0 0 16 16" aria-hidden="true" width="32" height="32">
<path
fill="currentColor"
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"
/>
</svg>
</a>
</div>
</footer>
);
}
Loading
Loading