Skip to content

Force gulp.src to fix order of files #687

@fesor

Description

@fesor

If i just pass mainBowerFiles result, which ordered based on dependencies for each module, into gulp's stream, then all files will be reordered and it broke app for example for inject or concat.

For example, mainBowerFiles returns:

[
    '/some/path/to/src/lib/angular/angular.js',
    '/some/path/to/src/lib/angular-animate/angular-animate.js',
    '/some/path/to/src/lib/angular-sanitize/angular-sanitize.js',
    '/some/path/to/src/lib/angular-ui-router/release/angular-ui-router.js',
]

after gulp-inject we'll get:

<script src="scripts/angular-animate.js"></script>
<script src="scripts/angular-sanitize.js"></script>
<script src="scripts/angular-ui-router.js"></script>
<script src="scripts/angular.js"></script>

Since ur-router, angular-sanitize and angular-animate depends of angular, application crashes.

Can this be solved?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions