lib/tasks/index.js
function(all) {
      var tasks = all? ['load-api']:['pack-prepare','load-api'];
      ss.bundler.forEach(function(bundler){
        if (all) {
          tasks.push(bundler.client.name + ':pack');
        } else if (bundler.packNeeded) {
          tasks.push(bundler.client.name + ':pack-needed');
          tasks.push(bundler.client.name + ':pack');
        } else {
          tasks.push(bundler.client.name + ':pack-unneeded');
        }
      });
      return tasks;
    }
function(all) {
      var tasks = all? ['load-api']:['pack-prepare','load-api'];
      ss.bundler.forEach(function(bundler){
        if (all) {
          tasks.push(bundler.client.name + ':pack');
        } else if (bundler.packNeeded) {
          tasks.push(bundler.client.name + ':pack-needed');
          tasks.push(bundler.client.name + ':pack');
        } else {
          tasks.push(bundler.client.name + ':pack-unneeded');
        }
      });
      return tasks;
    }
function ( all ) { var tasks = all ? [ 'load-api' ] : [ 'pack-prepare' , 'load-api' ] ; ss . bundler . forEach ( function ( bundler ) { if ( all ) { tasks . push ( bundler . client . name + ':pack' ) ; } else if ( bundler . packNeeded ) { tasks . push ( bundler . client . name + ':pack-needed' ) ; tasks . push ( bundler . client . name + ':pack' ) ; } else { tasks . push ( bundler . client . name + ':pack-unneeded' ) ; } } ) ; return tasks ; }
this is mostly for testing
this is mostly for testing