0.1.3 • Published 8 years ago

gulp-arrange v0.1.3

Weekly downloads
10
License
MIT
Repository
github
Last release
8 years ago

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"

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago