From fe24f8ee0f00b2aff010e08ad0b623307ad50cf6 Mon Sep 17 00:00:00 2001 From: Louis Chatriot Date: Mon, 15 Jul 2013 17:29:54 +0200 Subject: [PATCH] Install main dependencies if needed in browser version building --- browser-version/build.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/browser-version/build.js b/browser-version/build.js index 4bc7625..438c517 100644 --- a/browser-version/build.js +++ b/browser-version/build.js @@ -38,6 +38,11 @@ child_process.exec('npm install fs-extra async uglify-js browserify', { cwd: __d async.waterfall([ function (cb) { + console.log("Installing source dependencies if needed"); + + child_process.exec('npm install', { cwd: path.join(__dirname, '..') }, function (err) { return cb(err); }); + } + , function (cb) { console.log("Removing contents of the src directory"); async.eachSeries(fs.readdirSync(path.join(__dirname, 'src')), function (item, _cb) {