feat: add _scaffold starter template#17
Open
kenjonespizza wants to merge 9 commits into
Open
Conversation
Starter scaffold that gives new starters a running start with production-ready architecture out of the box.
Clarify that _scaffold is a template for creating new starters, not a standalone starter. Update CONTRIBUTING.md with step-by-step workflow.
Also updates studio .env.example with placeholder values and a comment header.
The scaffold is a template without a real Sanity project, so typegen and typecheck don't apply.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The bootstrap script was running `blueprints deploy` without first initializing the `.sanity/` config (created by `blueprints init`), causing "Missing scope configuration for Blueprint." Now checks for the config and runs init/config as needed. Also adds `src` to the document function so the CLI deploys the bundled output directory, and builds functions before deploying.
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.
What this adds
A starter scaffold (
_scaffold/) — the template you copy to create a new Sanity starter. Instead of building from scratch or adapting an existing starter, runcp -r _scaffold my-new-starterand start customizing.What's in the box
postschema (title, slug, portable text), Presentation Tool wired to the frontend, Vision Tool, and auto-updating TypeGennext-sanityv12 with live previews, draft mode, and visual editing — all pre-connected to the StudiodocumentEventHandlerwith Blueprint registration and Rolldown bundler, ready to extend@starter/eslint-config,@starter/tsconfig,@starter/sanity-typesso every workspace shares lint rules, compiler settings, and generated typescatalog:— single-source dependency versions across studio, frontend, and functionspnpm bootstrapdeploys the blueprint, deploys the schema, extracts + generates TypeGen types, and seeds 3 sample postsAGENT.md+CLAUDE.mdsymlink, plus a skills placeholder for Claude CodeHow to use it
See the updated CONTRIBUTING.md for the full 9-step checklist.
Docs changes
cp -r _scaffoldand includes a step-by-step customization guide_scaffold/for creating new starters_scaffold/README.md— framed as a template-for-templates, not a standalone appAlso in this PR
.oxfmtrc.jsonconfigs are respected_scaffoldjob to monorepo CI (format check, lint, template validation)Test plan
pnpm create sanity@latest --template sanity-labs/starters/_scaffoldworks end-to-end@sanity/template-validatorlocalhost:3333with post schema and seed datalocalhost:3000and individual posts at/posts/:slugpnpm validatepasses