gulp-filter-by ============== A gulp plugin designed to help filter files from source
return file.contents.toString().indexOf('@import "partialName"') > -1;
filterBy(fn)Will filter files based on the boolean return value of the provided
fnfunction is executed by the
filterByplugin, and it is passed the
filefrom the stream; it is then up to the developer of the task to decide whether the
fileshould be included into the stream by performing any desired computations; the only requirement is that the function returns a boolean value to the plugin, so that it knows how to process the
truewill include the file into the stream.
falsewill exclude the file from the stream.
NoteIf attempting to run the tests in Windows, use:
istanbul cover node_modules/mocha/bin/_mocha