-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2304 from cheapsteak/netlify
Netlify Deploy Previews
- Loading branch information
Showing
4 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[build] | ||
publish = "netlify-build" | ||
command = "bash scripts/netlify-build.sh" | ||
[build.environment] | ||
NODE_VERSION = "8" | ||
YARN_VERSION = "1.3.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/sh | ||
|
||
mkdir netlify-build | ||
|
||
yarn | ||
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/cra-kitchen-sink | ||
popd | ||
|
||
echo "netlify-build Vue examples" | ||
pushd examples/vue-kitchen-sink | ||
yarn build-storybook | ||
mv storybook-static ../../netlify-build/vue-kitchen-sink | ||
popd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters