-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
594f784
commit 3e3c0d3
Showing
1 changed file
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,24 @@ | ||
# next-storybook-example | ||
# next-storybook-typescript-example | ||
|
||
## Usage | ||
## Development usage | ||
|
||
``` | ||
$ npm install | ||
$ npm run dev | ||
$ npm run storybook | ||
``` | ||
|
||
Go to http://localhost:3000 in the browser | ||
Browser window should automatically open. | ||
|
||
## Static export | ||
|
||
``` | ||
$ npm install | ||
$ npm run build-storybook | ||
``` | ||
|
||
## References | ||
- [Storybook React setup](https://storybook.js.org/docs/guides/guide-react/) | ||
- [Export Storybook as a Static App](https://storybook.js.org/docs/basics/exporting-storybook/) | ||
- [TypeScript Config docs](https://storybook.js.org/docs/configurations/typescript-config/) | ||
- [Storybook TypeScript preset](https://github.com/storybookjs/presets/tree/master/packages/preset-typescript) | ||
- [Storybook Info Addon](https://github.com/storybookjs/storybook/tree/master/addons/info) |