ADD a switch case for Netlify official-storybook example

This commit is contained in:
Norbert de Langen 2017-12-22 13:31:16 +01:00
parent dc82759bc1
commit 84ffcd1ae9
No known key found for this signature in database
GPG Key ID: 976651DA156C2825

View File

@ -28,6 +28,13 @@ elif [ "$BUILD_CONTEXT" = "VUE" ]; then
yarn build-storybook
mv storybook-static ../../netlify-build
popd
elif [ "$BUILD_CONTEXT" = "OFFICIAL" ]; then
echo "netlify-build official examples"
pushd examples/official-storybook
yarn
yarn build-storybook
mv storybook-static ../../netlify-build
popd
else
RED='\033[0;31m'
NOCOLOR='\033[0m'