Skip to main content

Crate brrrty

Crate brrrty 

Source
Expand description

Support code for the brrrty command line tool.

Re-exports§

pub use bug::issue_url;

Modules§

bug
Bug reporting: issue links and the panic hook.
cleanup
Stopping brrrty doctor --verify on Ctrl-C or SIGTERM, and what to undo when it ends. Every stop also kills the JavaScript data worker (see brrrty_node::stop_all).
doctor
What brrrty doctor prints: the groups of blockers as text, or as JSON.
init
brrrty init: sets up an existing 11ty site to build with Brrrty.
js_config
config.set_js_config("node"): run the site’s 11ty config in its own Node, against a recording eleventyConfig, and apply what it recorded where the Rhai config’s own settings land. Rhai lines win over the JS config for the same setting.
options
Turns the command line flags and the config file into build options.
report
Renders build problems through miette.
serve
Watch the site’s sources, rebuild on change, and point the server at each new build.

Macros§

say
println! that ignores a closed stdout, as in brrrty serve | head -1: the reader going away is not a failure.
say_err
eprintln! that ignores a closed stderr, as in brrrty build 2>&1 | head -1: the reader going away is not a failure, and the exit code stands.