Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for ordering files in any folder #7

Open
timgit opened this issue Aug 5, 2014 · 1 comment
Open

Support for ordering files in any folder #7

timgit opened this issue Aug 5, 2014 · 1 comment

Comments

@timgit
Copy link

timgit commented Aug 5, 2014

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().

@mrcljx
Copy link
Collaborator

mrcljx commented Aug 14, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants