Documentation
¶
Overview ¶
Command pzlc is a minimal single-file .pzl compiler used by the integration tests described in constellation/doc/DOC-TESTING.md. It is the same split → parse → codegen pipeline the esbuild plugin runs, exposed as a one-shot CLI so an npm script can emit compiled modules for the vitest suite:
pzlc --mode view|layout|component <in.pzl> <out.js>
"view" and "layout" both emit a <puzzle-view> root (codegen.ModeView, D20); "component" emits an inline single-root render (codegen.ModeComponent). Parse and codegen errors print as positioned "file:line:col: message" and exit 1.
Click to show internal directories.
Click to hide internal directories.