From 128fad27cfc1f8b7043da4f41daf493c9b4747c9 Mon Sep 17 00:00:00 2001 From: Alexander Bezzubov Date: Fri, 26 Jun 2015 11:42:35 +0900 Subject: [PATCH] Fixing grunt build --- grunt | 7 ++++++- package.json | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) mode change 100644 => 100755 grunt mode change 100755 => 100644 package.json diff --git a/grunt b/grunt old mode 100644 new mode 100755 index 759cae7..f0dea57 --- a/grunt +++ b/grunt @@ -14,5 +14,10 @@ # See the License for the specific language governing permissions and # limitations under the License. # -"node/node" "./node_modules/.bin/grunt" "$@" +node="node/node" + +if hash "node" 2>/dev/null ; then + node="node" +fi +"$node" "./node_modules/.bin/grunt" "$@" diff --git a/package.json b/package.json old mode 100755 new mode 100644 index 0df9d2a..7c2d932 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "devDependencies": { "grunt": "^0.4.5", "grunt-autoprefixer": "^3.0.0", + "grunt-cli": "^0.1.13", "grunt-concurrent": "^1.0.0", "grunt-contrib-clean": "^0.6.0", "grunt-contrib-concat": "^0.5.0", @@ -37,4 +38,4 @@ "scripts": { "test": "grunt test" } -} \ No newline at end of file +}