Search code examples
javascriptrequirejsjs-amd

Dependency manager for Javascript?


Are there any JavaScript dependency managers that would not rely on loading modules async/ fetching data from server? I know require.js and others but it seems that it's not what I'm looking for or maybe I misunderstood them.

I have Backbone classes defined in one file and some other stuff in another and I use squishit to combine all JavaScript files into one(avoid multiple requests). Everything works fine, but I see that there maybe some issues in the future with dependency handling. Now I have a choice and I can use one of many AMD loaders(such as require) and my problem would be solved but then again, I'm using squishit so I can avoid multiple requests to server and by using AMD loader I couldn't do that. I saw that I could use require-optimizer to combine some modules into packages if I were using Java or Node - which I don't.

So I tried to look for something that did only dependency management without async loading and failed to find anything.

Does anyone know anything that would do what I want? Thank you


Solution

  • Since no one suggested Require.js + optimizer on a separate anwser I'm gonna answer my own question.

    After searching and reading a lot I found that Require.js + node would fit best for this kind of situation.