Skip to content

Commit

Permalink
Added bower & grunt to heroku buildpack
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed May 25, 2015
1 parent 21d692b commit aeabb3a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ else
fi
install_npm
install_compass
install_grunt
install_bower

####### Build the project's dependencies

Expand Down
16 changes: 15 additions & 1 deletion lib/build.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ install_compass() {
# install compass
info "Installing Compass..."
export GEM_HOME=$build_dir/.gem/ruby/2.2.0
PATH="$GEM_HOME/bin:$PATH"
PATH="$PATH:$GEM_HOME/bin"
export PATH
if test -d $cache_dir/ruby/.gem; then
info "Restoring ruby gems directory from cache..."
Expand All @@ -186,6 +186,20 @@ install_compass() {
fi
}

install_bower() {
info "Installing Bower..."
npm install --unsafe-perm --quiet -g bower 2>&1 >/dev/null | indent
PATH="$PATH:$build_dir/node_modules/.bin"
export PATH
}

install_grunt() {
info "Installing Grunt..."
npm install --unsafe-perm --quiet -g grunt 2>&1 >/dev/null | indent
PATH="$PATH:$build_dir/node_modules/.bin"
export PATH
}

function build_dependencies() {

if [ "$modules_source" == "" ]; then
Expand Down

0 comments on commit aeabb3a

Please sign in to comment.