2.0.1 • Published 2 years ago

@devoinc/dali-tokens-cli v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Dali Tokens CLI

dali-tokens-cli or dit, is a command-line interface that handles generation of style tokens from a set of schemas. dit provides a CLI to the scripts available in @devoinc/dali-tokens.

Installation

npm

You can install dit via npm by running:

  • using published version:
    npm install @devoinc/dali-tokens-cli -g
  • usin the local codebase:
    cd tokens-cli && npm link

Basic Usage

Once installed, it can be used on any repository by running:

dit

Available commands

dit build

Generates a brand from a given schema.

dit build [flags]

Options

  • -i, --input <path> REQUIRED Select schema path
  • -o, --output <path> REQUIRED Select brand's output dir
  • -s, --scheme <string> optional Schema type ('light' or 'dark'). Default value is 'light'.
  • -m, --menuScheme <string> optional mainMenu Schema type ('light' or 'dark'). Default value is 'light'.

Example

dit build -i schemes/light -o dist/light
#=> Build a brand from the schemas localed in `schemes/light` and stores the generated files under `dist/light`.

dit validate

Validates generated brand. It requires the path to the target folder containing the brand's files.

dit validate <path>

Example

dit validate ./dist/
#=> Validates generated brands stored in `./dist` folder.