From 987407ff0a936391299be25c82228385c826b1e3 Mon Sep 17 00:00:00 2001 From: Ryan Carniato Date: Wed, 2 Sep 2026 16:25:08 -0700 Subject: [PATCH] =?UTF-8?q?solid-v2/with-tsrx:=20route=20modules=20are=20.?= =?UTF-8?q?tsrx=20too=20=E2=80=94=20filesystem-routing=200.3.0=20analyzes?= =?UTF-8?q?=20TSRX=20route=20exports=20through=20@tsrx/oxc,=20so=20the=20w?= =?UTF-8?q?hole=20app=20(zero=20non-test=20.tsx)=20is=20authored=20in=20TS?= =?UTF-8?q?RX?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- solid-v2/with-tsrx/AGENTS.md | 4 +- solid-v2/with-tsrx/README.md | 8 +- solid-v2/with-tsrx/file-routes.d.ts | 24 +- solid-v2/with-tsrx/package.json | 3 +- solid-v2/with-tsrx/pnpm-lock.yaml | 627 +++++++++++++++++- solid-v2/with-tsrx/pnpm-workspace.yaml | 1 + .../routes/{[...404].tsx => [...404].tsrx} | 26 +- solid-v2/with-tsrx/src/routes/index.tsrx | 24 + solid-v2/with-tsrx/src/routes/index.tsx | 26 - solid-v2/with-tsrx/src/routes/users.tsrx | 10 + solid-v2/with-tsrx/src/routes/users.tsx | 12 - .../src/routes/users/{[id].tsx => [id].tsrx} | 22 +- solid-v2/with-tsrx/vite.config.ts | 6 +- 13 files changed, 700 insertions(+), 93 deletions(-) rename solid-v2/with-tsrx/src/routes/{[...404].tsx => [...404].tsrx} (53%) create mode 100644 solid-v2/with-tsrx/src/routes/index.tsrx delete mode 100644 solid-v2/with-tsrx/src/routes/index.tsx create mode 100644 solid-v2/with-tsrx/src/routes/users.tsrx delete mode 100644 solid-v2/with-tsrx/src/routes/users.tsx rename solid-v2/with-tsrx/src/routes/users/{[id].tsx => [id].tsrx} (73%) diff --git a/solid-v2/with-tsrx/AGENTS.md b/solid-v2/with-tsrx/AGENTS.md index 7a5813a0..86c3248b 100644 --- a/solid-v2/with-tsrx/AGENTS.md +++ b/solid-v2/with-tsrx/AGENTS.md @@ -24,7 +24,7 @@ Name your signals/memos/effects (the `{ name: "..." }` option) — attribution r ## TSRX modules (`.tsrx`) -This template authors the app in experimental TSRX wherever tooling allows: `src/App.tsrx`, `src/Document.tsrx`, and `src/components/*.tsrx`. Rules that differ from `.tsx`: +This template authors the whole app in experimental TSRX: `src/App.tsrx`, `src/Document.tsrx`, `src/components/*.tsrx`, and every route module under `src/routes`. Rules that differ from `.tsx`: - The extension is the opt-in: import with it spelled out (`./Counter.tsrx`). The Vite plugin compiles these automatically; no config. - A function body can be a statement container: `function C(props) @{ setup; }` — TypeScript statements first, then exactly one rendered output node (use a fragment for siblings). @@ -32,5 +32,5 @@ This template authors the app in experimental TSRX wherever tooling allows: `src - A `