Skip to content

Commit

Permalink
add netlify build script and toml config
Browse files Browse the repository at this point in the history
  • Loading branch information
cheapsteak committed Nov 14, 2017
1 parent da7fa87 commit 1397b0a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
3 changes: 3 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build]
publish = "netlify-build"
command = "bash scripts/netlify-build.sh"
21 changes: 18 additions & 3 deletions scripts/netlify-build.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
#!/bin/sh

mkdir netlify-build

yarn
yarn add gauge --ignore-workspace-root-check
yarn add gauge --ignore-workspace-root-check # netlify quirk
yarn bootstrap --core

echo "netlify-build docs"
pushd docs
yarn install
popd
yarn docs:build
mv docs/public/* netlify-build/

echo "netlify-build React examples"
pushd examples/cra-kitchen-sink
yarn add tapable # netlify quirk
yarn build-storybook
mv storybook-static ../../netlify-build
mv storybook-static ../../netlify-build/cra-kitchen-sink
popd

echo "netlify-build Vue examples"
pushd examples/vue-kitchen-sink
yarn build-storybook
mv storybook-static ../../netlify-build
mv storybook-static ../../netlify-build/vue-kitchen-sink
popd

0 comments on commit 1397b0a

Please sign in to comment.