I've been researching different client-side Javascript modules workflows for my current Node.JS Express project, and I am having trouble deciding between using Browserify + npm + gulp vs RequireJS + Bower + gulp.
I would much rather use CommonJS rather than AMD since I like the syntax more, so on the one hand I am tempted to go with the former option... however, I really dislike the idea of sharing the same global modules for both the server and the client (what if I want to use different versions), and also, I'd rather keep my client dependencies flat rather than the way npm does it, so I prefer Bower to manage my modules... and so I am caught in this conundrum.
Is there any way to get the best of both worlds? Browserify-shim seems to be relevant... Any opinions in the matter?