gilbertoca wrote > > Malcolm Edgar wrote >> #1 Dependency Management >> >> These controls will have various JQuery JS dependencies and assets which >> we >> can package in the distribution, or let people declare explicitly in >> their >> HTML page template. Traditionally we have packages up all the JS >> dependencies with Click as we want to make it easy for people to use. >> However now with peoples extensive use of these libraries extensively in >> their applications, so we will have potential issues with different >> versions. My thought on this is to include a properties file which >> declares the various controls dependencies. People can then potentially >> edit this properties file and override the default values: >> >> jquery.core.js= >> http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js >> >> # Desktop Menu components >> jquery.desktopmenu.css=/click/jquery/desktopmenu/desktopmenu.css >> jquery.desktopmenu.js=/click/jquery/desktopmenu/jquery.menu.js >> jquery.desktopmenu.template=/click/jquery/desktopmenu/desktopmenu.template.js > Wouldn't it be possible to package all the resources (js, img, css, > template-velocity or freemaker) in one jar? > I think it would be more simple to maintain, isn't it? > See the struts2-jquery-plugin[1] for an organization example. > > Regards, > > Gilberto > > [1] > http://code.google.com/p/struts2-jquery/source/browse/#svn%2Ftrunk%2Fstruts2-jquery-plugin%2Fsrc%2Fmain%2Fresources%2Ftemplate
One project that has gain some fuss recently is Wro4j[1]. I think it will help on packaging things. This[2] article explain a lot thing about it. Hth, Gilberto [1] http://code.google.com/p/wro4j/ [2] http://www.dzone.com/links/r/wro4j_page_load_optimization_and_lessjs.html -- View this message in context: http://click.1134972.n2.nabble.com/JQuery-and-Dependency-Management-tp7578125p7578308.html Sent from the click-user mailing list archive at Nabble.com.
