Skip to content

ExampleConfig

Defined in: src/build/examples.ts:22

How one example is run.

Property Type Description Defined in
demo? string[] Command for the non-interactive demo (in the example dir). Exits 0 on success. Without one, the example has no demo: <name> --demo fails and all --demo skips it. src/build/examples.ts:33
dir string The example directory, relative to the repo root. src/build/examples.ts:24
install? "always" | "run" bun install the example on first use: always, or only for the interactive run. src/build/examples.ts:37
kind "server" | "script" A server (gets a free PORT) or a script. src/build/examples.ts:26
note? string External requirement or hint to surface before running. src/build/examples.ts:43
panelPath? string Path the admin panel is mounted at, for the printed URL. src/build/examples.ts:41
preferredPort? number Preferred port for server examples; a nearby free one is used if taken. src/build/examples.ts:39
run string[] Command for the interactive run (in the example dir). src/build/examples.ts:28
seed? string[] Command run once before the interactive run (in the example dir), e.g. seeding data. src/build/examples.ts:35