Skip to content

Commit 817cf5a

Browse files
committed
Add a script to deploy the storybook.
1 parent 3b02765 commit 817cf5a

File tree

3 files changed

+163
-4
lines changed

3 files changed

+163
-4
lines changed

package-lock.json

Lines changed: 156 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
"scripts": {
77
"test": "standard",
88
"lintfix": "standard --fix",
9-
"build": "babel src -d lib",
10-
"prepare": "babel src -d lib",
11-
"storybook": "start-storybook -p 6006"
9+
"build": "rm -rf lib && babel src -d lib",
10+
"prepare": "rm -rf lib && babel src -d lib",
11+
"storybook": "start-storybook -p 6006",
12+
"storybook:build": "rm -rf storybook && build-storybook -o storybook",
13+
"storybook:deploy": "npm run storybook:build && gh-pages -d storybook"
1214
},
1315
"repository": {
1416
"type": "git",
@@ -39,6 +41,7 @@
3941
"@storybook/addon-actions": "^5.0.11",
4042
"@storybook/react": "^5.0.11",
4143
"babel-eslint": "^7.2.3",
44+
"gh-pages": "^2.0.1",
4245
"react": "^16.8.1",
4346
"react-dom": "^16.8.1",
4447
"standard": "^11.0.0"

stories/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import { storiesOf } from '@storybook/react'
33
import { action } from '@storybook/addon-actions'
4-
import { Typography } from '@material-ui/core'
4+
import Typography from '@material-ui/core/Typography'
55
import UploadIcon from '@material-ui/icons/CloudUpload'
66
import ImageIcon from '@material-ui/icons/Image'
77
import { InvisibleDropArea, FileSelectArea } from '../src'

0 commit comments

Comments
 (0)