Permalink
Browse files

Add support for grunt-cli and grunt 0.4

  • Loading branch information...
1 parent 1ef3382 commit f9cc2f1fc97f6f54394d5278db5f9d9612c823c8 @abtris abtris committed Dec 4, 2013
Showing with 6 additions and 2 deletions.
  1. +6 −2 bin/compile
View
@@ -186,8 +186,12 @@ mkdir -p $BUILD_DIR/.profile.d
echo "export PATH=\"\$HOME/bin:\$HOME/node_modules/.bin:\$PATH\"" > $BUILD_DIR/.profile.d/nodejs.sh
if [ -f $BUILD_DIR/grunt.js ] || [ -f $BUILD_DIR/Gruntfile.js ] || [ -f $BUILD_DIR/Gruntfile.coffee ]; then
- echo "-----> Found gruntfile, running grunt heroku task"
- $BUILD_DIR/node_modules/grunt/bin/grunt heroku
+ echo "-----> Found Gruntfile, running grunt heroku task"
+ if [ -f $BUILD_DIR/node_modules/grunt-cli/bin/grunt ]; then
+ $BUILD_DIR/node_modules/grunt-cli/bin/grunt heroku
+ else
+ $BUILD_DIR/node_modules/grunt/bin/grunt heroku
+ fi
else
echo "-----> No gruntfile (grunt.js) found"
fi

0 comments on commit f9cc2f1

Please sign in to comment.