Skip to content

[Request]: move urlcode-template to the site layout before the first release of #663–#665 #666

Closed

Description

@jimhoyd

Problem or use case

#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.

Related: #663, #664, #665.

Activity

  1. added 2 commits that reference this issue on Sep 24, 2026
    a295917
    a7cb35c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions