Config
The Terrazzo CLI needs a terrazzo.config.js
file in your project root for most tasks. Here’s an example file, with all defaults:
import css from "@terrazzo/plugin-css";
/** @type {import("@terrazzo/cli").Config} */
export default {
tokens: ["./tokens.json"],
outDir: "./tokens/",
plugins: [css()],
build: {
cleanDir: false,
},
};
Linting
See Linting.
All Options
Name | Type | Description |
---|---|---|
tokens | string | string[] | The path to your tokens. Can be one file (string ), or multiple (string[] ). |
outDir | string | The directory for output (Tip: add this to .gitignore ). |
plugins | Plugin[] | An array of plugins to use. |
lint | LintOptions | See Linting. |