Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

Automatically sort dependencies #27

@Alex7Li

Description

@Alex7Li

When using this library, I have a lot of goog modules which have to be compiled in a certain order, and i need to list all of them in the correct order for karma to work. This is somewhat annoying, because every time a file is added I have to put just that file in my karma config. For example if I have goog modules a,b,c where c requires b requires a, then I need to write

module.exports = function(config) {
  config.set({
    files: ['src/a.js', 'src/b.js', 'src/c.js', 'test/*_test.js'],
    preprocessors: {'**.js': ['googmodule']},
    plugins: [
      require('karma-googmodule-preprocessor'),
    ],
  })
};

Rather than just being able to say files:[src/**.js]. I'm wondering if it's possible to add this feature, or, if it exists documentation about how to do it correctly.

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