Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Script & Link tag helpers should do explicit ordering of globbed path results #2062

Closed
DamianEdwards opened this issue Feb 23, 2015 · 0 comments
Assignees
Milestone

Comments

@DamianEdwards
Copy link
Member

The script and link tag helpers currently just render new elements based on the result of the Matcher API and the provided globbing file paths. They should implement a more concrete ordering scheme to ensure that results and subsequently elements are always rendered in a deterministic and reliable fashion.

Proposed sort order is depth first alphabetical, e.g.:

Files:

  • 📂 a-sub
    • one.js
    • two.js
    • 📂 another-sub
      • a.js
      • b.js
      • 📂 yet-another-sub
      • a.js
  • 📂 b-sub
    • one.js
  • site.js
  • site.min.js

Globbing path: **/*.js

Resulting order:

  • site.js
  • site.min.js
  • a-sub/one.js
  • a-sub/two.js
  • a-sub/another-sub/a.js
  • a-sub/another-sub/b.js
  • a-sub/another-sub/yet-another-sub/a.js
  • b-sub/one.js
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant