klei / klei/gulp-angular-filesort
File ordering is not correct (random issue)
- Dominant language
- JavaScript
- Stars
- 131
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Description
This was just working, I just updated to 1.1.1 from 1.0.4 and now my files are not ordering correctly.
Here is the inject code I'm using, any help would be awesome. Can't tell if I'm missing something or not.
```
gulp.task('version', function () {
console.log("Automatically injecting JS & CSS...");
return gulp.src('./src/index.html')
.pipe($.inject(
gulp.src(paths.javascript.prod)
.pipe($.angularFilesort()), {
addRootSlash: true, // ensures proper relative paths
ignorePath: '/dist/app-v' + node.version + '/', // ensures proper relative paths
transform: function (filePath, file) {
return '';
}
}))
.pipe($.inject(gulp.src(paths.sass.prod), {
addRootSlash: true, // ensures proper relative paths
ignorePath: '/dist/app-v' + node.version + '/', // ensures proper relative paths
transform: function (filePath, file) {
return '';
}
}))
.pipe($.angularHtmlify({
customPrefixes: ['ui-']
}))
.pipe($.minifyHtml({
comments: false,
spare: true
}))
.pipe(gulp.dest('./dist/app-v' + node.version));
});
```
This returns the file order of:
```
app-v.js (actual app)
foundation-v.js (angular and what not)
ext-v.js (extended libs)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the gulp version task using the shown paths.javascript.prod input and the $.angularFilesort() pipeline, then compare the generated order with the reported app-v.js, foundation-v.js, and ext-v.js sequence. Determine the expected dependency order and document the result or a focused failing case for the sorting behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angularjs, javascript
- Domain
- build-system, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100