@devoinc/genesys-tokens-cli v7.16.0
Genesys tokens CLI
genesys-tokens-cli, is a command-line interface that handles generation of
style tokens from a set of schemas. genesys-tokens-cli provides a CLI to the
scripts available in
@devoinc/genesys-tokens.
Installation
npm
You can install genesys-tokens-cli via npm by running:
npm i -D @devoinc/genesys-tokens-cliBasic Usage
Once installed, it can be used on any repository by running:
npx @devoinc/genesys-tokens-cliOr using npm run-script.
Available commands
genesys-tokens-cli build
Generates a brand from a given schema.
genesys-tokens-cli build [flags]Options
-i,--input <path>REQUIRED Select schema path-o,--output <path>REQUIRED Select brand's output directory-s,--scheme <string>optional Schema type ('light'or'dark'). Default value is'light'.-m,--menuScheme <string>optionalmainMenuSchema type ('light'or'dark'). Default value is'light'.
Example
genesys-tokens-cli build -i schemes/light -o dist/light
# Build a brand from the schemes located in `schemes/light` and stores the
# generated files under `dist/light`.genesys-tokens-cli validate
Validates generated brand. It requires the path to the target folder
containing the brand's files.
genesys-tokens-cli validate <path>Example
genesys-tokens-cli validate ./dist/
# Validates generated brands stored in `./dist` folder.Typescript
The type definitions for the brands generated using @devoinc/genesys-tokens-cli are available in @devoinc/genesys-tokens-types.
9 months ago
1 year ago
9 months ago
9 months ago
7 months ago
7 months ago
7 months ago
8 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
9 months ago
1 year ago
6 months ago
7 months ago
8 months ago
7 months ago
8 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago