7.5.1 • Published 8 months ago

@devoinc/genesys-tokens-cli v7.5.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Genesys Tokens CLI

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

Installation

npm

You can install gyt via npm by running:

  • using published version:
    npm install @devoinc/genesys-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:

gyt

Available commands

gyt build

Generates a brand from a given schema.

gyt 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

gyt 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`.

gyt validate

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

gyt validate <path>

Example

gyt 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.

7.5.1

8 months ago

7.5.0

9 months ago

7.4.1

9 months ago

7.4.0

9 months ago

7.3.0

9 months ago

7.2.0

9 months ago

7.1.0

9 months ago

7.0.0

9 months ago

6.5.0

1 year ago

6.4.2

1 year ago

6.4.1

1 year ago

6.4.0

1 year ago

6.3.0

2 years ago

6.1.0

2 years ago

6.0.1

2 years ago

6.0.0

2 years ago

6.2.0

2 years ago

6.1.1

2 years ago

5.15.0

2 years ago

5.14.0

2 years ago

5.13.0

2 years ago

5.19.0

2 years ago

5.18.0

2 years ago

5.17.0

2 years ago

5.16.0

2 years ago

5.20.0

2 years ago

5.12.0

2 years ago

5.6.0

2 years ago

5.5.0

2 years ago

5.11.0

2 years ago

5.10.0

2 years ago

5.9.0

2 years ago

5.8.0

2 years ago

5.7.0

2 years ago

5.4.0

2 years ago

5.3.0

2 years ago

5.2.0

2 years ago

5.1.0

2 years ago

5.0.0

2 years ago

4.3.1

2 years ago

4.1.0

2 years ago

4.0.0

2 years ago

4.3.0

2 years ago

4.2.0

2 years ago

3.8.2

3 years ago

3.8.1

3 years ago

3.8.0

3 years ago

3.7.0

3 years ago

3.6.0

3 years ago

3.5.0

3 years ago

3.4.0

3 years ago

3.3.2

3 years ago

3.3.1

3 years ago

3.3.0

3 years ago

3.2.0

3 years ago

3.1.0

3 years ago

3.0.0

3 years ago