gulp-src-ordered-globs
v1.0.3
Published
gulp.src() wrapper which respects the globs array order (for gulp 3.x) - https://github.com/gulpjs/gulp/issues/837
Downloads
58
Readme
NOTE: this package should be used with gulp 3.x only, gulp 4's gulp.src()
will already have this functionality built-in.
gulp-src-ordered-globs
gulp.src()
wrapper which respects the globs array order (for gulp 3.x) - https://github.com/gulpjs/gulp/issues/837
Install
npm install --save-dev gulp-src-ordered-globs
How to use
var gulpSrc = require('gulp-src-ordered-globs');
gulpSrc(['src/**', '!src/**/*.js', 'src/vendor/**/*.js'], { base: 'src' })
.pipe(gulp.dest('dist'));
gulp-src-ordered-globs's signature is pretty much identical to gulp.src
's. Just note that the first argument must be an array of globs (otherwise you'd get no advantage from using gulp-src-ordered-globs anyway).
Changelog
- 1.0.2: Huge refactoring; no longer require
base
option; fix unit tests; change code style; Readme: add note about gulp 4. - 1.0.1: update readme example; some little refactoring.
- 1.0.0: initial release.