gulp-src-ordered-globs

1.0.3 • Public • Published

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

npm version Build Status Dependency Status devDependency Status

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.

Readme

Keywords

Package Sidebar

Install

npm i gulp-src-ordered-globs

Weekly Downloads

2

Version

1.0.3

License

WTHPL v1.0.0

Last publish

Collaborators

  • ult_combo