-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add npm scripts to build and deploy website
* commit built website to website/
- Loading branch information
Showing
14 changed files
with
14,373 additions
and
2 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,21 @@ | ||
#!/bin/bash | ||
|
||
echo "Building website..." | ||
npm run build | ||
|
||
echo "Arranging built website in website/" | ||
rm -rf website | ||
mkdir website | ||
|
||
# rename demo/website-index.html to be the base index.html | ||
cp dist/demo/website-index.html website/index.hml | ||
|
||
# selectively copy asset dirs from dist to the staging area | ||
cp -R dist/demo website/demo | ||
cp -R dist/css website/css | ||
cp -R dist/global website/global | ||
|
||
CURRENT_SHA="$(git rev-parse HEAD)" | ||
git add website/ | ||
git commit -m "built website from $CURRENT_SHA" | ||
echo "Done." |
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,3 @@ | ||
#!/bin/bash | ||
|
||
git push origin `git subtree split --prefix website`:gh-pages --force |
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,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Content Kit Editor 0.2.0</title> | ||
</head> | ||
<body> | ||
<!-- This file is here so that bustlelabs.github.io/content-kit-editor/ can direct the visitor to /demo --> | ||
Click to view the <a href="./demo/index.html">Demo</a>. | ||
</body> | ||
</html> |
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
Oops, something went wrong.