gulp-order icon indicating copy to clipboard operation
gulp-order copied to clipboard

Support for ordering files in any folder

Open timgit opened this issue 11 years ago • 1 comments

gulp.src() supports jumping over to another directory, such as "../app". I usually structure my apps with my build tools in a separate directory than my app, so this is typically how most of my globs start out.

When I realized that gulp-order() was not matching any of my files, I cracked open the source. I think the issue is that since path.relative() is used for ranking, it will never produce a path which matches since it's not accessible in a relative path from gulp (no matter what I pass in to options.base).

I'm on Windows, so ignoring options.base and letting it use file.path isn't an option either as it contains backslashes which are stripped out by path.relative().

timgit avatar Aug 05 '14 20:08 timgit

Do you have an example config? I primarily relied upon path.relative because I wanted to make sure that it works cross-platform...

mrcljx avatar Aug 14 '14 16:08 mrcljx