index.js
function (platforms) {
  var deferred = Q.defer();
  var sequence = Q();
  var all = [];
  _(platforms).where({ isAdded : true }).forEach(function (platform) {
    sequence = sequence.then(function () {
      return generateSplashForPlatform(platform);
    });
    all.push(sequence);
  });
  Q.all(all).then(function () {
    deferred.resolve();
  });
  return deferred.promise;
}
function (platforms) {
  var deferred = Q.defer();
  var sequence = Q();
  var all = [];
  _(platforms).where({ isAdded : true }).forEach(function (platform) {
    sequence = sequence.then(function () {
      return generateSplashForPlatform(platform);
    });
    all.push(sequence);
  });
  Q.all(all).then(function () {
    deferred.resolve();
  });
  return deferred.promise;
}
function ( platforms ) { var deferred = Q . defer ( ) ; var sequence = Q ( ) ; var all = [ ] ; _ ( platforms ) . where ( { isAdded : true } ) . forEach ( function ( platform ) { sequence = sequence . then ( function ( ) { return generateSplashForPlatform ( platform ) ; } ) ; all . push ( sequence ) ; } ) ; Q . all ( all ) . then ( function ( ) { deferred . resolve ( ) ; } ) ; return deferred . promise ; }
Goes over all the platforms and triggers splash screen generation

@param  {Array} platforms
@return {Promise}
Goes over all the platforms and triggers splash screen generation