Plombir::CLI::Preview
Implements plombir preview [--port 4000] [--host 127.0.0.1].
Serves the already-built dist/ byte-identical to build
output: no watch, no rebuild, nothing injected.
Constants
DEFAULT_PORT = 4000
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.
text
Source