Skip to content

Commit

Permalink
docs(storybook): add info on sb-build
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Vincze committed Mar 15, 2019
1 parent b158e22 commit 488be91
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
* [babel](processes/babel.md)
* [eslint](processes/eslint.md)
* [jest](processes/jest.md)
* [node (NEW)](processes/node.md)
* [node](processes/node.md)
* [prettier](processes/prettier.md)
* [storybook-start](processes/storybook-start.md)
* [storybook-build](processes/storybook-build.md)
* [tsc](processes/tsc.md)
* [webpack](processes/webpack.md)
* [webpack-dev-server](processes/webpack-dev-server.md)
Expand Down
24 changes: 24 additions & 0 deletions docs/processes/storybook-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# storybook-start

- Environment: `development`
- Alias: `sb-build`
- Storybook is being setup to use `mhy`'s `Webpack` and `Babel` config.
- Builds a standalone version of your Storybook to the `.sb` directory.

### Default command
```bash
build-storybook
```

### CLI Options
https://storybook.js.org/docs/configurations/cli-options/#for-build-storybook

### Example
```bash
mhy sb-build
# or
mhy storybook-build
```



4 changes: 3 additions & 1 deletion docs/processes/storybook-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ https://storybook.js.org/configurations/cli-options/

### Example
```bash
mhy storybook
mhy sb-start
# or
mhy storybook-start
```


Expand Down

0 comments on commit 488be91

Please sign in to comment.