tasks/npmcopy.js
function ensure(files, options) {
    // Update the global array of represented modules
    unused = filterRepresented(unused, files, options)

    verbose.writeln('Unrepresented modules list currently at ', unused)

    // Only print message when all targets have been run
    if (++numRuns === getNumTargets()) {
      if (unused.length) {
        if (options.report) {
          log.writeln('\nPackages left out:')
          log.writeln(unused.join('\n'))
        }
      } else if (options.report) {
        log.ok('All modules have something copied.')
      }
    }
  }
function ensure(files, options) {
    // Update the global array of represented modules
    unused = filterRepresented(unused, files, options)

    verbose.writeln('Unrepresented modules list currently at ', unused)

    // Only print message when all targets have been run
    if (++numRuns === getNumTargets()) {
      if (unused.length) {
        if (options.report) {
          log.writeln('\nPackages left out:')
          log.writeln(unused.join('\n'))
        }
      } else if (options.report) {
        log.ok('All modules have something copied.')
      }
    }
  }
function ensure ( files , options ) { // Update the global array of represented modules unused = filterRepresented ( unused , files , options ) verbose . writeln ( 'Unrepresented modules list currently at ' , unused ) // Only print message when all targets have been run if ( ++ numRuns === getNumTargets ( ) ) { if ( unused . length ) { if ( options . report ) { log . writeln ( '\nPackages left out:' ) log . writeln ( unused . join ( '\n' ) ) } } else if ( options . report ) { log . ok ( 'All modules have something copied.' ) } } }
Ensure all npm dependencies are accounted for
@param {Array} files Files property from the task
@param {Object} options
@returns {boolean} Returns whether all dependencies are accounted for
Ensure all npm dependencies are accounted for