From 01ca16fd59884a415776a7f2ff463c6d7a486aff Mon Sep 17 00:00:00 2001 From: James Allen Date: Tue, 19 Aug 2014 15:10:50 +0100 Subject: [PATCH] Run grunt install inside service directory --- Gruntfile.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index d17eeaac35..38885c6cc3 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -241,7 +241,8 @@ module.exports = (grunt) -> grunt.log.writeln "Config file already exists. Skipping." callback() - runGruntInstall: (dir, callback = (error) ->) -> + runGruntInstall: (service, callback = (error) ->) -> + dir = service.name proc = spawn "grunt", ["install"], stdio: "inherit", cwd: dir proc.on "close", () -> callback()