You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Request]: move urlcode-template to the site layout before the first release of #663–#665 #666
#663 changes urlcode init to always write one site layout: app/urlcode.yaml for the route project, plus host.mjs, package.json, .mcp.json (pointing at app), a Makefile and a workflow that use --project app --host-file host.mjs. The starter moved from starters/default/urlcode.yaml to starters/default/app/urlcode.yaml. The standalone jimhoyd-com/urlcode-template still has the old root layout (urlcode.yaml and tests/ at the root).
This will break the first release unless it is fixed. #664's release.yml runs a template job for stable releases, which calls scripts/release-template.ts. That script's templateSyncedPaths (line 48) owns root urlcode.yaml, tests/requests.json and the other root paths. copyPublishedTemplateStarter asserts that every starter file is one of those paths, so app/urlcode.yaml stops it with "Starter ships app/urlcode.yaml, which the template sync does not own".
Observed by reading the code on the #665 branch. I have not run the template job.
Proposed behavior and alternatives
Update templateSyncedPaths and copyPublishedTemplateStarter to the site layout: app/urlcode.yaml, app/tests/requests.json, the Makefile and .gitattributes. Remove the root urlcode.yaml and tests/ from the template as stale owned paths.
host.mjs is not in the starter; init generates it (renderInitialHost). Either commit an empty composeHost host to the template, or add it to the starter so the sync owns it.
The template's package.json scripts should match projectScripts() (--project app --host-file host.mjs), and its .mcp.json should point at app.
The template job runs npm run validate and npm test, so check it against a site that declares no extensions.
Alternative: retire the separate template, since npx @jimhoyd/urlcode init <dir> now produces a complete, pinned site. That would remove the template job and RELEASE_AUTOMATION_TOKEN entirely.
Activity
build(release)!: retire the standalone template
build(release)!: retire the standalone template