-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update website build script, demo prod config
- Loading branch information
Showing
2 changed files
with
8 additions
and
8 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,21 +1,21 @@ | ||
#!/bin/bash | ||
|
||
echo "Building website..." | ||
cd demo/ | ||
echo "Building website in $(pwd)" | ||
rm -rf node_modules/ bower_components/* | ||
npm install | ||
bower install | ||
ember build --environment production | ||
cd .. | ||
|
||
echo "Arranging built website in website/" | ||
echo "Arranging built website in $(pwd)/website" | ||
rm -rf website | ||
mkdir website | ||
mkdir -p website/demo | ||
|
||
# rename demo/dist/index.html to be the base index.html | ||
cd .. | ||
cp -R demo/dist/* website/ | ||
echo "Copying $(pwd)/demo/dist/* to $(pwd)/website/demo" | ||
cp -R demo/dist/* website/demo/ | ||
|
||
CURRENT_SHA="$(git rev-parse HEAD)" | ||
git add website/ | ||
git commit -m "built website from $CURRENT_SHA" | ||
echo "Done." | ||
echo "Deployed to http://bustlelabs.github.io/content-kit-editor/demo/" |
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