lib/build-manager.js
/**
   * Execute recursively until there's no more tasks to run.
   * Check after each task exits to avoid timing issues
   */
Execute recursively until there's no more tasks to run.
Check after each task exits to avoid timing issues
Execute recursively until there ' s no more tasks to run . Check after each task exits to avoid timing issues
function run(err) {
    if (err) {
      onError(err)
      if (bundleJobs.indexOf(activeTask) !== -1) {
        bundleJobs.forEach(job => queuedJobs.delete(job))
      }
    }
    activeTask = getNextJob(jobsByPriority, queuedJobs)
    if (activeTask) {
      activeTask(run)
    }
    else if (!err) {
      if (client) client.reload(null, Array.from(files))
      man.emit('ready')
      files.clear()
    }
  }
function run ( err ) { if ( err ) { onError ( err ) if ( bundleJobs . indexOf ( activeTask ) !== - 1 ) { bundleJobs . forEach ( job => queuedJobs . delete ( job ) ) } } activeTask = getNextJob ( jobsByPriority , queuedJobs ) if ( activeTask ) { activeTask ( run ) } else if ( ! err ) { if ( client ) client . reload ( null , Array . from ( files ) ) man . emit ( 'ready' ) files . clear ( ) } }
Execute recursively until there's no more tasks to run.
Execute recursively until there ' s no more tasks to run .