Permalink
Browse files

Merge pull request #1 from apiaryio/abtris/grunt-official

Add support for grunt-cli and grunt 0.4
  • Loading branch information...
2 parents 1ef3382 + f9cc2f1 commit d2861396e52f4ce9b17ee4f7174edf5a964cea1f @Almad Almad 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 d286139

Please sign in to comment.