Install main dependencies if needed in browser version building

pull/2/head
Louis Chatriot 12 years ago
parent e50e731f8d
commit fe24f8ee0f
  1. 5
      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) {

Loading…
Cancel
Save