Skip to content

Commit a2e257e

Browse files
committed
hotfix(tasks): Re-added grunt task execution after installation
1 parent d609616 commit a2e257e

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

lib/install.js

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
var Promise = require('bluebird')
2+
, path = require('path')
23
, _ = require('lodash')
34
, https = require('follow-redirects').https
45
, utils = GLOBAL.lib.utils
@@ -78,8 +79,25 @@ function install(repos) {
7879
exports.run = function(args) {
7980
return new Promise(function(resolve, reject) {
8081
install(args)
81-
.spread(function() {
82-
resolve();
82+
.spread(function(backendPath, frontendPath, npm /*, bower */) {
83+
var actions = [];
84+
85+
npm.forEach(function(module) {
86+
actions.push(
87+
util
88+
.grunt
89+
.runTasks(backendPath.moduleDir, path.join(backendPath.moduleDir, backendPath.modulePath, module.name))
90+
);
91+
});
92+
93+
Promise
94+
.all(actions)
95+
.then(function() {
96+
resolve();
97+
}, function (err) {
98+
reject(err);
99+
});
100+
83101
}, function (err) {
84102
reject(err);
85103
});

0 commit comments

Comments
 (0)