Selaa lähdekoodia

Run grunt install inside service directory

James Allen 12 vuotta sitten
vanhempi
sitoutus
01ca16fd59
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      Gruntfile.coffee

+ 2 - 1
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()