From 66b0387023becc1ba755fdd50fdcb3297fed7a71 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Wed, 13 Jul 2016 22:27:57 -0700 Subject: [PATCH] add a script to deploy storybook to gh-pages --- .gitignore | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 82504a63..89ee589c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ /dist -/dist-storybook /node_modules +/storybook diff --git a/package.json b/package.json index f0a6889e..48adc657 100644 --- a/package.json +++ b/package.json @@ -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",