feat(web): TanStack Start app skeleton with SSR and gate wiring#27
Open
ByteMeBaby wants to merge 1 commit into
Open
feat(web): TanStack Start app skeleton with SSR and gate wiring#27ByteMeBaby wants to merge 1 commit into
ByteMeBaby wants to merge 1 commit into
Conversation
Stand up apps/web as a TanStack Start (React) application that server-renders a placeholder home page and hydrates it on the client, replacing the prior library-style stub. This is the booting frontend shell that later chunks attach UI, a typed API client, theming, and auth to. - File-based routing with a generated, gitignored route tree, regenerated by the Start plugin on build and by tsr generate for typecheck; never committed. - Root route renders the document shell and owns the top-level error boundary and 404; page components live outside route files so they stay code-split. - Adapt the workspace gates to a Vite app: vite build (dist/client + dist/server), jsdom Vitest with Testing Library, and web-specific tsconfig overrides (jsx, DOM libs, bundler resolution). - Extend the shared ESLint config to lint .tsx so no-explicit-any and dependency-flow apply to React files. - Keep a real @forgekit/ui import (UI_VERSION) so the web to ui build edge stays honest. Doc: docs/web/app-skeleton.md.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Stands up
apps/webas a TanStack Start (React) app that server-renders a placeholder home page and hydrates it on the client, replacing the prior library-style stub. It is the booting frontend shell; later chunks attach the UI kit, a typed API client, theming, and auth to the same app.Changes
apps/web/src/routes; the root route renders the document shell and owns the top-level error boundary and 404. Page components live outside route files (so routes stay code-split); the/route registersHomePagefromsrc/components.src/routeTree.gen.tsis generated and gitignored — the Start plugin regenerates it onvite build, andtsr generateruns beforetypecheck. Never committed; rebuilds from a clean checkout.vite buildproducesdist/client+dist/server; Vitest runs onjsdomwith Testing Library; web-specific tsconfig overrides (jsx, DOM libs, bundler resolution)..tsx, sono-explicit-anyand@forgekit/dependency-flowapply to React files.UI_VERSIONfrom@forgekit/ui(the only internal import web is allowed), keeping the Turborepo build edge real.docs/web/app-skeleton.md.Verification
build,lint,typecheck,test).dist/serveris not nested under the client's served directory.Deferred (intentional)