[OpenLayers-Trac] Re: [OpenLayers] #3008: Build: Integrate Closure Compiler on OpenLayers

OpenLayers trac-20090302 at openlayers.org
Fri Jan 21 10:28:43 EST 2011


#3008: Build: Integrate Closure Compiler on OpenLayers
---------------------+------------------------------------------------------
 Reporter:  jorix    |       Owner:              
     Type:  feature  |      Status:  new         
 Priority:  minor    |   Milestone:  2.11 Release
Component:  general  |     Version:  2.10        
 Keywords:           |       State:  Review      
---------------------+------------------------------------------------------

Comment(by jorix):

 Replying to [comment:4 avlee]:
 > This is a good way to check documents in codes. But for library, it's
 hard to build using closure compiler with "ADVANCED_OPTIMIZATIONS" flag...

 This ticket is '''designed to use SIMPLE_OPTIMIZATIONS''' (but it allows
 testing to advanced optimizations, to work with it not serve the externs,
 it needs many changes to the code, see:
 [http://code.google.com/intl/ca/closure/compiler/docs/api-
 tutorial3.html#no Do Not Use Externs Instead of Exports!], but this is not
 the place to talk about it)

 SIMPLE_OPTIMIZATIONS is directly applicable in 2.11, is safe and has good
 compression ratio of 20%.

 "'''Solve massive warnings highlights what should be revised'''": This has
 been my main line of work done with Closure Compiler for !OpenLayers.

 This ticket (by default) hides massive warnings, and force some errors
 like undefined variables. This gives useful information when it checks the
 source code, see #2960, #2971, #2976, #3001 and #2989.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3008#comment:5>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list