broccoli-funnel
Advanced tools
Comparing version 0.2.5 to 0.2.6
15
index.js
@@ -50,2 +50,3 @@ 'use strict'; | ||
this._instantiatedStack = (new Error()).stack; | ||
this._buildStart = undefined; | ||
} | ||
@@ -97,2 +98,3 @@ | ||
Funnel.prototype.build = function() { | ||
this._buildStart = new Date(); | ||
this.destPath = path.join(this.outputPath, this.destDir); | ||
@@ -108,3 +110,5 @@ if (this.destPath[this.destPath.length -1] === '/') { | ||
var linkedRoots = false; | ||
if (this.shouldLinkRoots()) { | ||
linkedRoots = true; | ||
if (fs.existsSync(inputPath)) { | ||
@@ -119,2 +123,9 @@ fs.rmdirSync(this.outputPath); | ||
} | ||
this._debug('build, %o', { | ||
in: new Date() - this._buildStart + 'ms', | ||
linkedRoots: linkedRoots, | ||
inputPath: inputPath, | ||
destPath: this.destPath | ||
}); | ||
}; | ||
@@ -152,5 +163,7 @@ | ||
this._debug('processFilters %o', { | ||
in: new Date() - this._buildStart + 'ms', | ||
filesFound: files.length, | ||
filesProcessed: count, | ||
inputPath: inputPath | ||
inputPath: inputPath, | ||
destPath: this.destPath | ||
}); | ||
@@ -157,0 +170,0 @@ }; |
{ | ||
"name": "broccoli-funnel", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "Broccoli plugin that allows you to filter files selected from an input node down based on regular expressions.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -167,3 +167,3 @@ # Broccoli Funnel | ||
`include` *{Array of RegExps|Glob Strings|Functions}* | ||
`include` *{Array of GlobStrings|RegExps|Functions}* | ||
@@ -193,3 +193,3 @@ One or more matcher expression (regular expression, glob string, or function). Files within the node whose names match this | ||
You can select files that match a regular expression copy those subdirectories to a | ||
You can select files that match a glob expression and copy those subdirectories to a | ||
new location, preserving their location within parent directories: | ||
@@ -203,3 +203,3 @@ | ||
var todoRelatedFiles = new Funnel('src', { | ||
include: [new RegExp(/todo/)] | ||
include: ['todo/**/*'] | ||
}); | ||
@@ -221,3 +221,3 @@ | ||
`exclude` *{Array of RegExps|Glob Strings|Functions}* | ||
`exclude` *{Array of Glob Strings|Glob Strings|Functions}* | ||
@@ -250,3 +250,3 @@ One or more matcher expression (regular expression, glob string, or function). Files within the node whose names match this | ||
You can select files that match a regular expression exclude them from copying: | ||
You can select files that match a glob expression and exclude them from copying: | ||
@@ -259,3 +259,3 @@ ```javascript | ||
var nobodyLikesTodosAnyway = new Funnel('src', { | ||
exclude: [new RegExp(/todo/)] | ||
exclude: ['todo/**/*'] | ||
}); | ||
@@ -262,0 +262,0 @@ |
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
34860
630