klei / klei/gulp-angular-filesort

Wrong sorting with files in deep directory structure

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

Description

I have a directory structure similar to the following:

```
app
\-main
\-app.js
\-admin
\-item
\-itemController.js
```

`app.js` has a module deifined `angular.module('app', [])`
`itemController.js` adds a controller to app module `angular.module('app').controller(...)`

Sorting result puts `itemController.js` before `app.js`.
When I tried putting 'itemController.js' one level higher (in admin directory) sorting worked as expected.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the sorting result with the structure shown, using app.js for angular.module('app', []) and itemController.js for the controller registration. Trace how the sorter handles these files at different directory depths; done means itemController.js is placed after app.js while the reported structure remains supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs, javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.