Closed creynders closed 10 years ago
Yeah, I hear Browserify is all the rage now. Gotta check it out myself.
@geekdave Definitely do so. I can't imagine anybody sticking to RequireJS after having tried out Browserify. Obviously I'm not using it for a very long time yet, so maybe I still need to encounter the bad parts, but it has got this it-just-works feel to it. Took me an hour or so to figure out how to fit all the pieces of the puzzle together (browserify, grunt, handlebars, backbone and shimming old-skool libs) but it was all pretty painless and transparant.
@creynders : Will do - thanks for the insight!
I'm moving away from RequireJS since it's so ... um ... I dunno, I just keep on struggling with it and I loathe the boilerplate. So I'm migrating to Browserify which is really awesome, especially since I do front and backend, which means I can use the same module importing syntax on both.
require("backbone.geppetto")
otherwise you need to provide a path (i.e.require("backbone.geppetto/backbone.geppetto")
)I have no idea how to test this through mocha, so I did some manual testing and it all worked out. I looked at Marionette and they don't seem to be testing whether the framework's exposed as CommonJS module either.