Storybookことはじめ(導入編)
https://gyazo.com/693c223891831c18abe6d233e428cad0
最初にやる
インストール
shell.icon npm i -g @storybook/cli
プロジェクトに移動
shell.icon cd my-storybook-project
shell.icon getstorybook
package.json (作ってない場合だけ)
code:zsh
npm init
name: (my-storybook-project)
version: (1.0.0)
description:
entry point: (index.js)
test command:
git repository:
keywords:
author:
license: (ISC)
{
"name": "my-storybook-project",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": "",
"author": "",
"license": "ISC"
}