Commands

sourcey dev

Preview the site while you write, with each change drawn as you save it.

sourcey dev serves the site from its sources and redraws what a change touches as you save it.

sourcey dev [--port <number>] [--host <address>] [--config <path>]
FlagAliasDefaultMeaning
--port-p4400The port to listen on
--hostlocalhost, or $HOSTThe address to listen on, such as 0.0.0.0 to reach it from another machine
--config-csourcey.config.ts hereThe config file, or the folder holding it
--strictChangelogfalseStop on changelog warnings

The server watches the config and every file it imports, each page, spec, overlay and snapshot the config names, the components folder and the public folder. It reports the same problems a build does, broken links among them, as you work, and applies the headers each Markdown and discovery file needs.

The dev server is for writing. Publish with sourcey build.