Skip to content

Commit

Permalink
docs: Simplify installing Storybook with npx (#5788)
Browse files Browse the repository at this point in the history
Reduce two-step install to just one step (per the latest storybook docs)

Change (i) `npm install -g @storybook/cli` and (ii) `sb init` to `npx -p @storybook/cli sb init`

Refs: https://storybook.js.org/basics/quick-start-guide/
  • Loading branch information
sagirk authored and iansu committed Nov 14, 2018
1 parent 0c9c97a commit d72256c
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions docusaurus/docs/developing-components-in-isolation.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,10 @@ You can also deploy your Storybook or style guide as a static app. This way, eve

Storybook is a development environment for React UI components. It allows you to browse a component library, view the different states of each component, and interactively develop and test components.

First, install the following npm package globally:
Run the following command inside your app’s directory:

```sh
npm install -g @storybook/cli
```

Then, run the following command inside your app’s directory:

```sh
sb init
npx -p @storybook/cli sb init
```

After that, follow the instructions on the screen.
Expand Down

0 comments on commit d72256c

Please sign in to comment.