Skip to content

Commit

Permalink
Update website build script for Ember
Browse files Browse the repository at this point in the history
  • Loading branch information
mixonic committed Oct 1, 2015
1 parent c552056 commit 0be1a85
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions bin/build-website.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
#!/bin/bash

echo "Building website..."
npm run build
cd demo/
rm -rf node_modules/ bower_components/*
npm install
bower install
ember build --environment production

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
# rename demo/dist/index.html to be the base index.html
cd ..
cp -R demo/dist/* website/

CURRENT_SHA="$(git rev-parse HEAD)"
git add website/
Expand Down

0 comments on commit 0be1a85

Please sign in to comment.