feat(playground): add app setup with template and static page#75
Merged
Conversation
Set up the playground app with a Vite config, createApp entry point,
default HTML template with header/main/footer slots, and a static home
page. Fix codegen output to use module augmentation (export {}) so
generated declarations work correctly with moduleDetection: "force".
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Update lockfile after rebase, ignore generated framework.gen.d.ts and vite.config.ts from eslint, and allow default exports in template files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
55f2a61 to
36b6bc0
Compare
The playground is an SSR app without a client entry point, so vite build fails looking for index.html. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The framework.gen.d.ts file must be in the repo so that tsc can resolve TemplateRegistry and RouteMap augmentations on CI. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Closed
qantrepreneur
added a commit
that referenced
this pull request
May 21, 2026
* feat(playground): add first template and static route
Set up the playground app with a Vite config, createApp entry point,
default HTML template with header/main/footer slots, and a static home
page. Fix codegen output to use module augmentation (export {}) so
generated declarations work correctly with moduleDetection: "force".
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(playground): fix lockfile and eslint config for playground
Update lockfile after rebase, ignore generated framework.gen.d.ts and
vite.config.ts from eslint, and allow default exports in template
files.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(playground): use no-op build script for SSR app
The playground is an SSR app without a client entry point, so vite
build fails looking for index.html.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(playground): commit generated declarations for type-checking
The framework.gen.d.ts file must be in the repo so that tsc can
resolve TemplateRegistry and RouteMap augmentations on CI.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Lorenzo <lorenzofkramer@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
frameworkPlugin(),createAppentry point, default HTML template (header/main/footer slots), and a static home page routeviteas a dev dependency and updated scripts (dev: vite,build: vite build)generateDeclarationswhere the codegen output was missingexport {}, causingdeclare moduleblocks to shadow the real module instead of augmenting it (broke all framework imports whenmoduleDetection: "force"was active)framework.gen.d.tsto.gitignoresince it's machine-generatedTest plan
pnpm --filter @sundayceo/framework test— all 158 tests passpnpm --filter @sundayceo/playground check-types— passes after codegenCloses #25
🤖 Generated with Claude Code