Build pipeline
patties build drives a multi-stage pipeline.
Build stages
- Load config and resolve target settings.
- Scan routes, islands, agents, tools, and jobs.
- Generate the client entry for islands.
- Bundle browser assets when islands exist.
- Write the client manifest to disk.
- Generate a server entry with inlined route and manifest macros.
- Bundle the server for the active adapter target.
- Copy public assets.
- Let the adapter emit final runtime artifacts.
Output shape
The build result includes:
- a client manifest
- the final server entry
- emitted assets
- feature counts for routes, islands, agents, tools, and jobs
- additional adapter artifacts
Plugin hooks
Plugins can participate with:
onBuildStartonBuildEndonJobsCollect
Hook failures are wrapped with plugin and hook names before being surfaced.