Making changes
There are two separate environments in play, and conflating them is the most common source of confusion. Pick the loop that matches what you are changing.
Loop A — the component library (instant preview)
Section titled “Loop A — the component library (instant preview)”The repo connected to this workspace is PatternYard-SvelteUI, a SvelteKit
component library (not an app). Its preview window runs a local dev server:
npm install # first time onlynpm run dev # vite dev server; the preview window attaches automaticallyEdit any component or the showcase route and HMR updates the preview instantly. This is the loop for working on shared UI components.
Loop B — the deployed apps (PR + deploy)
Section titled “Loop B — the deployed apps (PR + deploy)”The apps that actually run patternyard.dev (home, editor, backend, packager, …) live
in their own repositories and deploy on Vercel. They do not appear in this
workspace’s preview window. The loop is:
- Clone fresh —
gh repo clone patternyard/<repo>into a scratch directory. (The VM resets between turns, so always re-clone; do not rely on a previous clone.) - Edit + commit on a feature branch, then open a PR.
- Merge the PR.
- Force a production deploy — for these projects, a git merge produces only a
Preview deploy, so promote it explicitly:
Terminal window vercel deploy --prod --yes --scope team_1A5hxCsAnX5KFLm69oklRZWB - Verify on the live domain, not in the preview window.
See the deployment runbook for the exact commands and the gotchas that bite in this environment.
Which loop?
Section titled “Which loop?”| If you are changing… | Use |
|---|---|
| A shared Svelte component | Loop A (this workspace) |
| The home site, editor, backend, packager, extensions, docs | Loop B (clone + PR + deploy) |
| These architecture docs | Loop B against PatternYard-Architecture |