[Users] ExtJS 3.0.0 build for GeoExt

Tim Schaub tschaub at opengeo.org
Fri Dec 18 18:25:31 CET 2009


Alexandre Dube wrote:
> Eric Lemoine wrote:
> 
>> No, because it's not only what GeoExt extends that's required. I think
>> you need to look for \s+Ext\. or something.
>>   
> 

Note this is not really as simple as looking for what GeoExt explicitly 
references.  In an application, it is common (and easy) for the specific 
configuration to radically change what is required from Ext.

For example, setting the "draggable" config property of a panel calls 
initDraggable which references Ext.Panel.DD which is defined in 
PanelDD.js which in turn depends on DDCore.js.  I don't think sed et al. 
will help there.

Same goes for layout related config properties and other behaviors.

I've found that if your application uses forms, grids, and allows 
dragging, you don't really get much savings with a partial build 
(particularly if you're also using HTTP compression).

I'd be curious to hear if the automated custom build effort results in a 
significantly slimmer build.

Tim

> How's this :
> 
> grep -r " Ext." * | grep -v .svn | cut -d: -f2 | grep -v "^\s*\*" | sed 
> -e "s|\bExt\.|\nExt.|g" | grep -e "^Ext\." > /tmp/ttt.txt ; sed -e 
> "s|^.*\bExt\.|Ext.|g" /tmp/ttt.txt | ssed -R "s/[^\.\w].*$//g" | 
> sort|uniq>/tmp/extlib.txt
> 
> All credits go to Julien btw.
> 


-- 
Tim Schaub
OpenGeo - http://opengeo.org
Expert service straight from the developers.


More information about the Users mailing list