فهرست منبع

Run grunt install inside service directory

James Allen 12 سال پیش
والد
کامیت
01ca16fd59
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      Gruntfile.coffee

+ 2 - 1
Gruntfile.coffee

@@ -241,7 +241,8 @@ module.exports = (grunt) ->
 				grunt.log.writeln "Config file already exists. Skipping."
 				grunt.log.writeln "Config file already exists. Skipping."
 				callback()
 				callback()
 
 
-		runGruntInstall: (dir, callback = (error) ->) ->
+		runGruntInstall: (service, callback = (error) ->) ->
+			dir = service.name
 			proc = spawn "grunt", ["install"], stdio: "inherit", cwd: dir
 			proc = spawn "grunt", ["install"], stdio: "inherit", cwd: dir
 			proc.on "close", () ->
 			proc.on "close", () ->
 				callback()
 				callback()