1.0.1 • Published 2 years ago

stylebook-cli v1.0.1

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

Stylebook Cli

MIT License

A sample CLI to manage frontend-token-definition.json file

Features

  • Create frontend-token-definition.json file
  • Create categories inside this file
  • Create token sets
  • Create token definition

Installation

Install this cli using cli. First, clone this repo and run this.

    npm i stylebook-cli

Usage/Examples

To generate a new file.

  stylebook create
{
    "frontendTokenCategories": []
}

To create a new category

  stylebook create:category
  ? Section label? colors
{
    "frontendTokenCategories": [
        {
            "name": "colors",
            "label": "colors",
            "frontendTokenSets": []
        }
    ]
}

Authors

1.0.1

2 years ago

1.0.0

2 years ago