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 #2101 from video-dev/netlify
configure netlify for PR's
- Loading branch information
Showing
5 changed files
with
97 additions
and
59 deletions.
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,14 @@ | ||
# https://www.netlify.com/docs/netlify-toml-reference/ | ||
|
||
# Settings in the [build] context are global and are applied to all contexts | ||
# unless otherwise overridden by more specific contexts. | ||
[build] | ||
# Directory (relative to root of your repo) that contains the deploy-ready | ||
# HTML files and assets generated by the build. If a base directory has | ||
# been specified, include it in the publish directory path. | ||
publish = "netlify" | ||
|
||
# Deploy Preview context: all deploys resulting from a pull/merge request will | ||
# inherit these settings. | ||
[context.deploy-preview] | ||
command = "TRAVIS_MODE=netlifyPr ./scripts/travis.sh" |
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,17 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
root="./netlify" | ||
|
||
rm -rf "$root" | ||
mkdir "$root" | ||
|
||
echo "Building netlify..." | ||
|
||
# redirect / to /demo | ||
echo "/ /demo" > "$root/_redirects" | ||
cp -r "./dist" "$root/dist" | ||
cp -r "./demo" "$root/demo" | ||
cp -r "./api-docs" "$root/api-docs" | ||
|
||
echo "Built netlify." |
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
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