[OpenLayers-Dev] Integrate Closure Compiler on OpenLayers 2.11

Xavier Mamano (jorix) xavier.mamano at gmail.com
Thu Jan 6 10:44:44 EST 2011


Hi list,

The Closure Compiler can check the source code and reports errors and
warnings that can improve the source code.

The  http://trac.osgeo.org/openlayers/ticket/3008 #3008  ticket allows the
use of the compiler on OpenLayers and can also take the Natural Docs
comments to check the code.

Try:
  build/compile.py -m jsDoc full.cfg
and see the WARNING. If not using the revision 
http://trac.osgeo.org/openlayers/changeset/11000 r11000  or later the
compilation report at least one serious error.

Using Closure Compiler can prevent bad code as: 
http://trac.osgeo.org/openlayers/ticket/2960 #2960 , #2971, #2976, #3001 and
also  http://trac.osgeo.org/openlayers/ticket/2989 #2989 

Also highlight that the compiler can generate code 20% smaller than jsmin.

Regards,

Xavier Mamano

-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Integrate-Closure-Compiler-on-OpenLayers-2-11-tp5895990p5895990.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.


More information about the Dev mailing list