klei / klei/gulp-angular-filesort

Order of files by modules

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

Description

Hello!
Can I use angular modules to change an order of my angular files ?

For example:
I have the main angular module and two additional modules:

``` javascript
angular.module('app', ['mod1']);

angular.module('mod1', ['mod2']);
angular.module('mod2', []);
```

Each of additional modules has a controller in a separated file:
**mod1Controller.js**

``` javascript
angular.module('mod1').controller('mod1Controller', mod1Controller);
```

**mod2Controller.js**

``` javascript
angular.module('mod2').controller('mod2Controller', mod2Controller);
```

I need that in my index.html will have the next order
(file **mod2Controller.js** should be injected before **mod1Controller.js**):

``` javascript

```

Is it possible ?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the AngularJS module declarations in app.js and the dependency/controller examples in mod1Controller.js and mod2Controller.js. Check how gulp-angular-filesort handles that dependency order; done means determining whether it can produce the requested index.html order and, if not, defining the needed change.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs, javascript
Domain
frontend, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.