lib/inject-dependencies.js
function injectDependencies(globalConfig) {
  config = globalConfig;
  var stream = config.get('stream');

  globalDependenciesSorted = config.get('global-dependencies-sorted');
  ignorePath = config.get('ignore-path');
  fileTypes = config.get('file-types');

  if (stream.src) {
    config.set('stream', {
      src: injectScriptsStream(stream.path, stream.src, stream.fileType),
      fileType: stream.fileType
    });
  } else {
    config.get('src').forEach(injectScripts);
  }

  return config;
}
function injectDependencies(globalConfig) {
  config = globalConfig;
  var stream = config.get('stream');

  globalDependenciesSorted = config.get('global-dependencies-sorted');
  ignorePath = config.get('ignore-path');
  fileTypes = config.get('file-types');

  if (stream.src) {
    config.set('stream', {
      src: injectScriptsStream(stream.path, stream.src, stream.fileType),
      fileType: stream.fileType
    });
  } else {
    config.get('src').forEach(injectScripts);
  }

  return config;
}
function injectDependencies ( globalConfig ) { config = globalConfig ; var stream = config . get ( 'stream' ) ; globalDependenciesSorted = config . get ( 'global-dependencies-sorted' ) ; ignorePath = config . get ( 'ignore-path' ) ; fileTypes = config . get ( 'file-types' ) ; if ( stream . src ) { config . set ( 'stream' , { src : injectScriptsStream ( stream . path , stream . src , stream . fileType ) , fileType : stream . fileType } ) ; } else { config . get ( 'src' ) . forEach ( injectScripts ) ; } return config ; }
Inject dependencies into the specified source file.

@param  {object} globalConfig  the global configuration object.
@return {object} config
Inject dependencies into the specified source file .