How to use the broccoli-funnel.prototype function in broccoli-funnel

To help you get started, we’ve selected a few broccoli-funnel examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ember-engines / ember-engines / lib / rollup-funnel.js View on Github external
// An array and FSTree, respectively, representing the dependency graph of the
  // entry point or the non-dependency graph.
  this._depGraph = undefined;
  this._depGraphTree = undefined;
  this._nonDepGraph = undefined;
  this._nonDepGraphTree = undefined;

  Plugin.call(this, [inputNodes], {
    annotation: options.annotation,
    persistentOutput: true
  });
  this.options = options;
}

RollupFunnel.prototype._copy = Funnel.prototype._copy;

/**
 * Constructs an FSTree from the passed in paths.
 *
 * @param {Array} paths
 * @return {FSTree}
 */
RollupFunnel.prototype._getFSTree = function(paths) {
  var inputPath = this.inputPaths[0];
  var entries = paths.map(function(entryPath) {
    var absolutePath = path.join(inputPath, entryPath);
    var stat = existsStat(absolutePath);

    if (!stat) {
      return;
    }

broccoli-funnel

Broccoli plugin that allows you to filter files selected from an input node down based on regular expressions.

MIT
Latest version published 3 years ago

Package Health Score

65 / 100
Full package analysis

Popular broccoli-funnel functions