Re: Anyone used GWT with Require.js?

2012-11-30 Thread Joseph Lust
An update here. The external team writing in RequireJS was not so amicable about sending RequireJS packing into the night. So, we did 2 things: - Had them use the feature in RequireJS to compile to a single file with their Optimizer http://requirejs.org/docs/optimization.html. - Had

Re: Anyone used GWT with Require.js?

2012-11-21 Thread Joseph Lust
Oh the irony. I had to componentize a widget created by another team which uses RequireJs today and the first Google hit is my own answer. Given that I wanted to just make a GWT module that could be inherited to use an external widget, said module would not have an entry point and onModuleLoad

Re: Anyone used GWT with Require.js?

2012-08-15 Thread walker1c
Hi Joseph, I think what you suggest may be the solution. I could transplant the code from onModuleLoad() to a method that's invoked from one of the scripts loaded by Requirejs. It's slightly awkward because onModuleLoad() is an instance method, so I need to expose the EntryPoint object in a

Anyone used GWT with Require.js?

2012-08-14 Thread walker1c
Hi, The project I'm working on is seeing a lot of native Javascript creeping in, largely as a result of the requirement to incorporate UI features developed by other teams that specialise in Javascript. I am hoping to manage the Javascript dependencies using require.js

Re: Anyone used GWT with Require.js?

2012-08-14 Thread Joseph Lust
Chris, But I still have problems when JSNI code calls into a Javascript library before it's finished loading. The solution would appear to be to use require.js to load the nocache script that boots the application, so that it won't start executing until all its dependencies have loaded.