lib/build.js
function() {
    if (!builds.length) { return; } // this shouldn't happen

    var build = builds.shift();
    var buildCallback = function(stats) {
      cb(build.buildName, stats);
      if (builds.length) {
        runNextBuild();
      }
    };
    console.log(colors.cyan('[Starting build]'), build.buildName);
    executeBuild(build, buildCallback);
  }
function() {
    if (!builds.length) { return; } // this shouldn't happen

    var build = builds.shift();
    var buildCallback = function(stats) {
      cb(build.buildName, stats);
      if (builds.length) {
        runNextBuild();
      }
    };
    console.log(colors.cyan('[Starting build]'), build.buildName);
    executeBuild(build, buildCallback);
  }
function ( ) { if ( ! builds . length ) { return ; } // this shouldn't happen var build = builds . shift ( ) ; var buildCallback = function ( stats ) { cb ( build . buildName , stats ) ; if ( builds . length ) { runNextBuild ( ) ; } } ; console . log ( colors . cyan ( '[Starting build]' ) , build . buildName ) ; executeBuild ( build , buildCallback ) ; }
Run each build serially so the server can do things like read an app manifest file that's genrated during the client build step.
Run each build serially so the server can do things like read an app manifest file that s genrated during the client build step .