node_modules/grunt-angular-builder/tasks/middleware/exportSourcePaths.js
/**
 * Exports to Grunt's global configuration the paths of all script files that are required by the application,
 * in the order defined by the modules' dependency graph.
 * @constructor
 * @implements {MiddlewareInterface}
 * @param {Context} context The execution context for the middleware stack.
 */
Exports to Grunt's global configuration the paths of all script files that are required by the application,
in the order defined by the modules' dependency graph.
@constructor
@implements {MiddlewareInterface}
@param {Context} context The execution context for the middleware stack.
Exports to Grunt ' s global configuration the paths of all script files that are required by the application in the order defined by the modules ' dependency graph . @constructor @implements { MiddlewareInterface } @param { Context } context The execution context for the middleware stack .
function ExportSourceCodePathsMiddleware (context)
{
  var options = context.options.sourcePaths;
  var tracedPaths = [];
  this.analyze = function (filesArray)
  {
  };
  this.trace = function (module)
  {
    tracedPaths.push (module.headPath);
    arrayAppend (tracedPaths, module.bodyPaths);
  };
  this.build = function (targetScript)
  {
    var scripts = [];
    if (context.standaloneScripts.length)
      arrayAppend (scripts, context.standaloneScripts.map (function (e)
      {
        return e.path;
      }));
    arrayAppend (scripts, tracedPaths);
    context.grunt.config (options.exportToConfigProperty, scripts);
  };
}
function ExportSourceCodePathsMiddleware ( context ) { var options = context . options . sourcePaths ; var tracedPaths = [ ] ; this . analyze = function ( filesArray ) { } ; this . trace = function ( module ) { tracedPaths . push ( module . headPath ) ; arrayAppend ( tracedPaths , module . bodyPaths ) ; } ; this . build = function ( targetScript ) { var scripts = [ ] ; if ( context . standaloneScripts . length ) arrayAppend ( scripts , context . standaloneScripts . map ( function ( e ) { return e . path ; } ) ) ; arrayAppend ( scripts , tracedPaths ) ; context . grunt . config ( options . exportToConfigProperty , scripts ) ; } ; }
Exports to Grunt's global configuration the paths of all script files that are required by the application,
 in the order defined by the modules' dependency graph.
Exports to Grunt ' s global configuration the paths of all script files that are required by the application in the order defined by the modules ' dependency graph .
/**
   * Paths of all the required files (excluding standalone scripts) in the correct loading order.
   * @type {string[]}
   */ //-------------------------------------------------------------------------------------------------------------------- // PUBLIC API //-------------------------------------------------------------------------------------------------------------------- /* jshint unused: vars */ // Do nothing /* jshint unused: vars */ // Include paths of forced-include scripts. // Include all module files. // Export.