Build
Compile and stage the app for development. Processes frontend HTML/CSS/TS and compiles the backend into build/.
Purpose
- Produce up-to-date dev outputs without optimization.
- Validate the workspace and surface actionable errors.
When To Use
- Before running tests locally.
- In CI to check that code compiles.
CLI
webstir build --workspace <path>
Steps
- Read the workspace mode from
package.json. - Choose the active build plan for that mode:
spaandssgbuild the frontend onlyapibuilds the backend onlyfullbuilds both
- Run the canonical provider packages from
packages/tooling/**. - Write development artifacts under
build/**.
Outputs
build/frontend/**with page HTML, CSS, JS, and copied assets when the workspace has a frontend surfacebuild/backend/**with compiled backend output when the workspace has a backend surface.webstir/frontend-manifest.jsonemitted by the frontend package when the frontend surface is active
To print the current backend manifest summary, use:
webstir backend-inspect --workspace /absolute/path/to/workspace
Errors & Exit Codes
- Non-zero on TypeScript errors, missing base HTML, or pipeline failures.
- Logs identify the failing stage and file when possible.