Skip to content

Commit

Permalink
use broccoli-funnel to allow excluding files/folders using regex
Browse files Browse the repository at this point in the history
  • Loading branch information
craigteegarden committed Apr 29, 2015
1 parent fd1109b commit 0503c63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/ember-addon.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var path = require('path');
var fs = require('fs');
var mergeTrees = require('broccoli-merge-trees');
var fileRemover = require('broccoli-file-remover');
var funnel = require('broccoli-funnel');

var manifest = require('./manifest');

Expand Down Expand Up @@ -31,8 +31,8 @@ module.exports = {
var options = this.manifestOptions;

if (type === 'all' && options.enabled) {
manifestTree = fileRemover(tree, {
paths: options.excludePaths
manifestTree = funnel(tree, {
exclude: options.excludePaths
});
return mergeTrees([tree, manifest(manifestTree, options)]);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
"broccoli-writer": "~0.1.1",
"broccoli-kitchen-sink-helpers": "~0.2.2",
"broccoli-merge-trees": "~0.1.4",
"broccoli-file-remover": "~0.3.1"
"broccoli-funnel": "~0.2.3"
}
}

0 comments on commit 0503c63

Please sign in to comment.