add a script to deploy storybook to gh-pages

This commit is contained in:
Nicolas Gallagher
2016-07-13 22:27:57 -07:00
parent 94f37740af
commit 66b0387023
2 changed files with 3 additions and 2 deletions

2
.gitignore vendored
View File

@@ -1,3 +1,3 @@
/dist
/dist-storybook
/node_modules
/storybook

View File

@@ -8,7 +8,8 @@
],
"scripts": {
"build": "del ./dist && mkdir dist && babel src -d dist --ignore **/__tests__",
"build:storybook": "build-storybook -o dist-storybook -c ./examples/.storybook",
"build:storybook": "build-storybook -o storybook -c ./examples/.storybook",
"deploy:storybook": "git checkout gh-pages && git add -A && git commit -m \"Storybook deploy\" && git push origin gh-pages && git checkout -",
"build:umd": "webpack --config webpack.config.js --sort-assets-by --progress",
"lint": "eslint src",
"prepublish": "npm run build && npm run build:umd",