Repository navigation
Generate a blank app template and publish it as a branch - #30
Open
herefishyfish wants to merge 1 commit into
Open
herefishyfish wants to merge 1 commit into
herefishyfish wants to merge 1 commit into
Conversation
New apps need the web and native shells and the UI packages without the docs site and demos. The template is generated from this repo, so it cannot drift from it. Regions between template:demo and template:end comments are dropped, and templates/blank is laid on top. A workflow checks the generated app on pull requests and commits it to the blank branch on main. Apps cloned from that branch merge updates with npm run update:template.
This branch has not been deployed
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.
A blank app to start from: the web and native apps, one shared home screen and the UI, router and polyfill packages, without the docs site and demos.
How it works
tools/blank-template.mjscopies the files in itsCOPYlist, drops the lines betweentemplate:demoandtemplate:endcomments, and laystemplates/blankon top. It fails on unbalanced markers and onCOPYorRENAMEentries that no longer match..github/workflows/blank-template.ymlgenerates, typechecks, tests and builds the app for web on each pull request. Onmainit commits the result to theblankbranch.blankand runnpm run update:template, agit pullof that branch plusnpm install.For reviewers
blankbranch. The publish job hascontents: writeand never force-pushes.apps/web/vite.config.mts(the prerender routes moved to onesiteRouteslist) and the import andpassthroughlayout inapps/native/src/main.ts.Testing
npm installand a merge conflict were not exercised.