tools/scan_deps.js
function genDeps(basePath, targets) {
  var provideMap = new ProvideMap_();
  var requireMap = new RequireMap_();

  var files = [];
  targets.forEach(function(target) {
    files = files.concat(relativeGlob(target));
  });
  scanFiles(files, provideMap, requireMap);

  var results = genAddDependency(basePath, provideMap, requireMap);
  return results.join('\n');
}
function genDeps(basePath, targets) {
  var provideMap = new ProvideMap_();
  var requireMap = new RequireMap_();

  var files = [];
  targets.forEach(function(target) {
    files = files.concat(relativeGlob(target));
  });
  scanFiles(files, provideMap, requireMap);

  var results = genAddDependency(basePath, provideMap, requireMap);
  return results.join('\n');
}
function genDeps ( basePath , targets ) { var provideMap = new ProvideMap_ ( ) ; var requireMap = new RequireMap_ ( ) ; var files = [ ] ; targets . forEach ( function ( target ) { files = files . concat ( relativeGlob ( target ) ) ; } ) ; scanFiles ( files , provideMap , requireMap ) ; var results = genAddDependency ( basePath , provideMap , requireMap ) ; return results . join ( '\n' ) ; }
Generates deps.js used for testing.
@param {string} basePath
@param {!Array<string>} targets
@return {string}
Generates deps . js used for testing .