Skip to content

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.

Diagram

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:

Terminal window
npm install # first time only
npm run dev # vite dev server; the preview window attaches automatically

Edit 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:

  1. Clone freshgh repo clone patternyard/<repo> into a scratch directory. (The VM resets between turns, so always re-clone; do not rely on a previous clone.)
  2. Edit + commit on a feature branch, then open a PR.
  3. Merge the PR.
  4. 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
  5. 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.

If you are changing…Use
A shared Svelte componentLoop A (this workspace)
The home site, editor, backend, packager, extensions, docsLoop B (clone + PR + deploy)
These architecture docsLoop B against PatternYard-Architecture