Skip to content

Instantly share code, notes, and snippets.

@nwmcsween
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save nwmcsween/d47a6834abf30aed9788 to your computer and use it in GitHub Desktop.

Select an option

Save nwmcsween/d47a6834abf30aed9788 to your computer and use it in GitHub Desktop.
var dirStream = function(dir, name, ext, trans) {
return hl(
dirs(dir).map(function(d) {
gulp.src(path.join(dir, d, '**/*') + ext);
})).merge().each(function(s) {
trans.forEach(function(t) {
return s.pipe(t);
});
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment