klei / klei/gulp-angular-filesort

Wrong sorting in files - latest version

Open
#25 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
131
Forks
47
PR merge metrics
No merged PRs in 30d

Description

Directory structure:
![screen shot 2015-03-19 at 3 34 30 pm](https://cloud.githubusercontent.com/assets/8523710/6731420/88a331dc-ce4d-11e4-9124-55fa02818fea.png)

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.