Liquid Local Development
Local Liquid development uses the same Liquid behavior as Shoppex-hosted storefronts.| Mode | Use |
|---|---|
| Fixture data | Fast layout, spacing, responsive, and markup work |
| Live shop data | Catalog, stock, settings, product detail, and checkout-sensitive work |
| Theme preview | Final review before publish |
Commands
Source Sync
shoppex theme pull writes .shoppex/theme.json with the linked theme id and source revision.
shoppex theme push uploads the full local source snapshot and validates it. It does not publish automatically.
shoppex theme dev also persists idle local edits with safe background pushes. If the remote source changed since your pull, the CLI stops instead of overwriting it.
Simple example:
Clean Local AI Workflow
When an AI assistant is editing locally, keep the workspace linked and observable:Start from a fresh pull
Pull the hosted theme before editing so
.shoppex/theme.json has the current source revision.Run the Liquid dev server
Keep
shoppex theme dev running while the assistant edits. Use fixtures for layout work and --shop-slug my-shop --no-msw for catalog-sensitive work.Edit source only
Change Liquid, CSS, schema, settings, and declared assets. Do not edit generated output or local metadata.
Validate before preview
Run
shoppex theme validate --include-typecheck or shoppex theme push --preview --include-typecheck.Fixture Data vs Live Data
Use fixtures for layout work:Common Local Checks
Files An AI Agent Should Avoid
Do not ask an assistant to edit:.shoppex/theme.json.git/node_modules/- generated artifacts
- private API keys or
.envfiles
theme-package.json so the file is declared.
Revision Mismatch
If another user changed the remote draft after your last pull, push fails with a revision conflict. Safe fix:Handoff After Local Work
Before handing work to another person or AI agent, leave this summary:Next Steps
Hosted Theme Sync
Full pull, dev, push, preview, publish workflow.
Package Format
Required Liquid files and manifest rules.