diff --git a/.gitignore b/.gitignore index 89ee589c..a2af7f53 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ /dist +/dist-examples /node_modules -/storybook diff --git a/package.json b/package.json index 26508406..fbe9a030 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,9 @@ ], "scripts": { "build": "del ./dist && mkdir dist && babel src -d dist --ignore **/__tests__", - "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:examples": "build-storybook -o dist-examples -c ./examples/.storybook", "build:umd": "webpack --config webpack.config.js --sort-assets-by --progress", + "deploy:examples": "git checkout gh-pages && rm -rf ./storybook && mv dist-examples storybook && git add -A && git commit -m \"Storybook deploy\" && git push origin gh-pages && git checkout -", "lint": "eslint src", "prepublish": "npm run build && npm run build:umd", "storybook": "start-storybook -p 9001 -c ./examples/.storybook",