module

Plombir::CLI::Dev

Implements plombir dev [--port 3000] [--host 127.0.0.1] [--future].

Full initial build (plus dependency graph and cache), then serve dist/ while a watcher rebuilds only affected pages per batch.

Constants

DEFAULT_PORT = 3000

Class methods

call(args : Array(String), directory : String = Dir.current, io : IO = STDOUT, error : IO = STDERR) : Int32

Runs the command against args in directory.

Returns the process exit code instead of calling exit directly so specs can assert on every non-blocking branch. The successful path blocks serving until SIGINT/SIGTERM, so it is exercised manually, not in specs.

Source
run(args : Array(String)) : Nil
Source
text
Source