broccoli-funnel
Advanced tools
Comparing version 0.2.6 to 0.2.7
{ | ||
"name": "broccoli-funnel", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "Broccoli plugin that allows you to filter files selected from an input node down based on regular expressions.", | ||
@@ -13,3 +13,4 @@ "main": "index.js", | ||
"scripts": { | ||
"test": "mocha tests/" | ||
"test": "mocha tests/", | ||
"test:debug": "mocha debug tests/" | ||
}, | ||
@@ -26,3 +27,3 @@ "keywords": [ | ||
"symlink-or-copy": "^1.0.0", | ||
"walk-sync-matcher": "^0.2.0" | ||
"walk-sync-matcher": "^0.2.2" | ||
}, | ||
@@ -29,0 +30,0 @@ "devDependencies": { |
@@ -94,3 +94,2 @@ 'use strict'; | ||
it('works with mixed glob and RegExp includes', function() { | ||
@@ -237,2 +236,16 @@ var inputPath = path.join(fixturePath, 'dir1'); | ||
it('matches *.css', function() { | ||
var inputPath = path.join(fixturePath, 'dir1/subdir2'); | ||
var node = new Funnel(inputPath, { | ||
include: ['*.css'] | ||
}); | ||
builder = new broccoli.Builder(node); | ||
return builder.build() | ||
.then(function(results) { | ||
var outputPath = results.directory; | ||
expect(walkSync(outputPath)).to.eql(['bar.css']); | ||
}); | ||
}); | ||
it('does not error with input node at a missing nested source', function() { | ||
@@ -338,3 +351,3 @@ var inputPath = path.join(fixturePath, 'dir1'); | ||
testAllIncludeMatchers([ '**/*.png' ], [ /.png$/ ],[ matchPNG ], [ | ||
testAllIncludeMatchers([ '**/*.png' ], [ /.png$/ ], [ matchPNG ], [ | ||
'subdir1/', | ||
@@ -341,0 +354,0 @@ 'subdir1/subsubdir1/', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35312
642
Updatedwalk-sync-matcher@^0.2.2