klei / klei/gulp-angular-filesort
Wrong sorting in files - latest version
- Dominant language
- JavaScript
- Stars
- 131
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Description
Directory structure:

Main app code:
```
(function () {
'use strict';
var module = angular.module('janus', ['janus.common', 'janus.security','janus.admin']);
}());
```
Gulp:
```
var injectScripts = gulp.src([
//paths.src + '/app/app.js',
paths.src + '/app/**/*.js',
'!' + paths.src + '/app/**/*.spec.js',
'!' + paths.src + '/app/**/*.mock.js'
]).pipe($.naturalSort())
.pipe($.angularFilesort());
```
My main app is added after janus.security & janus.common .. I've read the previous issues in here but can't seem to get this fixed.
Contributor guide
No contributing guide indexed for this repository
Research direction
Inspect the gulp injectScripts pipeline and the main app module declaration, then reproduce the sorting output from the shown configuration. Done means the generated files place janus.common and janus.security before the main janus app according to their AngularJS module dependencies.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angularjs, javascript
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100