[Cosmo-dev] Custom dojo build torch passing

Travis Vachon travis at osafoundation.org
Wed Jan 3 15:33:23 PST 2007


Hi folks

I'm pretty much finished up on this dojo build work, and I believe  
the plan is to pass this off to bear for integration into the build  
process. Here's where we stand:

- I've checked in tools/generate_dojo_build.sh which downloads the  
dojo 0.4.1 checkpoint from their subversion directory, generates a  
dojo build that includes much of our code, and copies the build into / 
src/main/webapp/js/lib/dojo.

- Once this build is created, the line

<script type="text/javascript" src="${staticBaseUrl}/js/lib/dojo- 
event_and_io/dojo.js"></script>

in src/main/webapp/WEB-INF/tags/dojoBoilerplate.tag can be changed to

<script type="text/javascript" src="${staticBaseUrl}/js/lib/dojo/ 
dojo.js"></script>

- Voila! The next time you load the pim ui, it should make many less  
requests to the server.

One important note:

- tools/generate_dojo_build.sh is very primitive, and probably should  
not be used in the build process. Instead, it should serve as an  
illustration of how the dojo build process works.


I'm going to consider this bug fixed on my end unless I hear  
otherwise, but I'd be happy to keep troubleshooting and improving  
this stuff in the future. Any feedback is definitely more than welcome!

-Travis


More information about the cosmo-dev mailing list