gulp-arrange v0.1.3
gulp-arrange
Gulp plugin to make sure the files being streamed are done so in the correct order. It can be used to make sure depending files coming from gulp.src do not get handled before the file(s) they depend on. This is especially useful before using gulp-concat to make sure the JavaScript doesn't become invalid because of a wrong order.
Usage
Put following two snippets in your gulpfile. Near the imports
var gulpArrange = require("gulp-arrange");
and in the pipeline you want to influence
.pipe(gulpArrange({
}))
The parameter object has one mandatory and several optional attributes to set.
Attributes
patterns
mandatory; an array of glob or regex strings which indicates the respective order of zero, one or multiple files
options
optional; an options object usable for the chosen type of string (globs: object with option attributes, regexes: string made up of option characters)
usesRegex
optional; should be set to true when using regex strings, by default the strings are intrepreted as globs
fileAttribute
optional; the vinyl file attribute used to match against the patterns, default is "relative"