Skip to content

transform

Project component spec files into derived artifacts — contracts, styles, and token inventories.

Usage

Terminal window
specs transform [transformers...] [options]

Arguments

[transformers...]

One or more transformer names to run. When omitted, uses config.transform.transformers from your config file, then falls back to the CLI default (contract).

Terminal window
specs transform contract css styling

Options

-o, --output <path>

Override the output directory for generated artifacts.

--config <path>

Use a specific config file.

--verbose

Show detailed output during transformation.

Transformers

NameOutput
contract (default)TypeScript Props interface and defaults per component
cssCSS custom property rules per component
stylingToken inventory per component

See Also