This repository has been archived by the owner on Oct 9, 2019. It is now read-only.
forked from johnpmayer/elm-webgl
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added gh-pages script * Added screenshots and links * Move examples, setup domain
- Loading branch information
Showing
11 changed files
with
38 additions
and
12 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
elm-stuff | ||
index.html | ||
.DS_Store | ||
gh-pages |
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,26 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
rm -rf gh-pages || exit 0; | ||
|
||
mkdir -p gh-pages/examples | ||
|
||
# compile JS using Elm | ||
cd examples | ||
for i in crate cube first-person thwomp triangle; do | ||
elm make $i.elm --yes --output ../gh-pages/examples/$i.html | ||
done | ||
|
||
# copy the textures | ||
cp -R texture ../gh-pages/examples | ||
cp -R screenshots ../gh-pages/examples | ||
|
||
# configure domain | ||
cd ../gh-pages | ||
echo "webgl.elm-community.org" >> CNAME | ||
|
||
# init branch and commit | ||
git init | ||
git add . | ||
git commit -m "Deploying to GH Pages" | ||
git push --force "git@github.com:elm-community/elm-webgl.git" master:gh-pages |