Skip to content

Template scaffolder + config schema#9

Open
miguelrisero wants to merge 2 commits into
feat/seo-and-funnelfrom
feat/template-scaffolder
Open

Template scaffolder + config schema#9
miguelrisero wants to merge 2 commits into
feat/seo-and-funnelfrom
feat/template-scaffolder

Conversation

@miguelrisero

Copy link
Copy Markdown
Contributor

Stack 5 of 5 (base: feat/seo-and-funnel). Council DX — turn template creation into a paved road.

  • npm run new -- <name> <type> (or interactive npm run new) scaffolds a starter for any of the 7 types (static, vite, next, nuxt, nuxt-server, custom, node-functions): validates the slug, wires the base path, and stamps a $schema-referenced template.config.json where needed. Closes the "only 2 of 7 types have examples / conventions are tribal knowledge" gap.
  • template.config.schema.json — JSON Schema for the per-project config (type enum, dashboard, functions, crons, noindex, …). Referenced via "$schema" so editors validate + autocomplete it.
  • README + CLAUDE document both.

Verified: scaffolder rejects bad names, scaffolds + builds a static template, and emits correct next files (cleaned up after testing). npm test (13) green.

⚠️ Final stack PR — merge last, after #8. Full order: #5#6#7#8#9.

`npm run new -- <name> <type>` (or interactive) scaffolds a slug-named starter
for any of the 7 types with the base-path wiring and a $schema-referenced
template.config.json where needed — so contributors don't reverse-engineer the
conventions. template.config.schema.json gives editor validation/autocomplete
for custom + node-functions configs.
@vercel

vercel Bot commented Jun 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
templates Ready Ready Preview, Comment Jun 3, 2026 9:49am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant