index.js
function (platform) {
  var deferred = Q.defer();
  display.header('Generating splash screen for ' + platform.name);
  var all = [];
  var splashes = platform.splash;
  splashes.forEach(function (splash) {
    all.push(generateSplash(platform, splash));
  });
  Q.all(all).then(function () {
    deferred.resolve();
  }).catch(function (err) {
    console.log(err);
  });
  return deferred.promise;
}
function (platform) {
  var deferred = Q.defer();
  display.header('Generating splash screen for ' + platform.name);
  var all = [];
  var splashes = platform.splash;
  splashes.forEach(function (splash) {
    all.push(generateSplash(platform, splash));
  });
  Q.all(all).then(function () {
    deferred.resolve();
  }).catch(function (err) {
    console.log(err);
  });
  return deferred.promise;
}
function ( platform ) { var deferred = Q . defer ( ) ; display . header ( 'Generating splash screen for ' + platform . name ) ; var all = [ ] ; var splashes = platform . splash ; splashes . forEach ( function ( splash ) { all . push ( generateSplash ( platform , splash ) ) ; } ) ; Q . all ( all ) . then ( function ( ) { deferred . resolve ( ) ; } ) . catch ( function ( err ) { console . log ( err ) ; } ) ; return deferred . promise ; }
Generates splash based on the platform object

@param  {Object} platform
@return {Promise}
Generates splash based on the platform object