Skip the whole build if there is nothing to build for

This commit is contained in:
Slava Kim
2014-10-22 20:06:46 -07:00
parent 339af7c22e
commit 10d43a974b

View File

@@ -720,6 +720,8 @@ var pluginsConfiguration = {};
// Build a Cordova project, creating a Cordova project if necessary.
var buildCordova = function (localPath, platforms, options) {
verboseLog('Building the cordova build project');
if (_.isEmpty(platforms))
return;
buildmessage.enterJob({ title: 'Building for mobile devices' }, function () {
var bundlePath = path.join(localPath, 'build-cordova-temp');