plumber-concat
v0.2.2
Published
Concatenation operation for Plumber pipelines
Downloads
9
Readme
plumber-concat
Concatenation operation for Plumber pipelines.
Example
var glob = require('plumber-glob');
module.exports = function(pipelines) {
pipelines['compile'] = [
glob('src/**/*.js'),
// ... more pipeline operations
];
};
API
glob(patterns...)
Returns resources for all files matched by the list of patterns.
Patterns may include wildcards like *
or **
(globstar).
See the minimatch documentation for the full available syntax.
glob.within(directory)
Returns a new glob
function scoped within the given directory.
Example:
var sources = glob.within('src');
var htmlAndCss = sources("index.html", "styles/*.css");
var scripts = sources.within('scripts');
var js = sources("**/*.js");