Skip to main content

infer_config

Function infer_config 

Source
pub fn infer_config(source_dir: &Path) -> Result<InferredConfig, CodegenError>
Expand description

Walk source_dir and infer a plumb_core::Config from the design-token sources it finds.

The walker is bounded by MAX_WALK_DEPTH and skips node_modules, target, dist, build, .next, out, and any dotfile directory.

ยงErrors