Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use broccoli-funnel to allow excluding files/folders using regex #9

Merged
merged 1 commit into from
Apr 30, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
}