Permalink
Find file Copy path
83198ee Aug 8, 2018
3 contributors

Users who have contributed to this file

@sapegin @rubenmoya @n1313
37 lines (26 sloc) 953 Bytes

CLI commands and options

Commands

  • styleguidist server: Run dev server.
  • styleguidist build: Generate a static HTML style guide.

Options

Option Description
--config <file> Specify path to a config file
--open Open Styleguidist in the default browser
--verbose Print debug information

Usage

Add these commands into your package.json’s scripts section:

{
  "scripts": {
    "styleguide": "styleguidist server",
    "styleguide:build": "styleguidist build"
  }
}

Or run them directly from your terminal:

npx styleguidist server
npx styleguidist build

Note: npx is a part of npm and will run locally-installed styleguidist package.