I have used requirejs in the past (implementation on BBC iPlayer in 2010) and it works well. It can handle CommonJS modules, but this requires an extra shell, which I find annoying. If you want to use these modules in node.js, you also need to use requirejs on the server side, which I don’t like to do, since it is not idiomatic node.js JavaScript.
I used webmake and browserify last year on several projects. Initially, the compilation stage let me go, but, using it widely this year, I can say that this is not a problem.
Browserify has a clock function that works very well. Webmake can be connected to an observer (for example, watchr ), or you can use webmake-middleware , which can be used as part of an Express or Connect application. This has the advantage that instead of compiling JavaScript for each save, it only compiles when you really request it. Connect makes creating a server (also static) trivial, so you can create a tiny static node.js server to serve your files if you want to develop your interface without support.
Bonus: There is no need to create a script, since you are always dealing with inline code.
gillesruppert Sep 29 '12 at 15:53 2012-09-29 15:53
source share