13 Oct 2010 14:36:57 UTC
- Module version: 0.07
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (2)
- Testers (667 / 170 / 10)
- KwaliteeBus factor: 0
- 83.18% Coverage
- License: unknown
- Activity24 month
- Download (9.24KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- PACKAGE PROPERTY
- SEE ALSO
- CONFIGURATION AND ENVIRONMENT
- BUGS AND LIMITATIONS
- LICENSE AND COPYRIGHT
The Closure compiler offers 3 different level of compression and tools to analyze the code.
You can therefore get errors, warnings about the code and some statistics about the compression.
The Closure compiler offers also some annotations to be used in your code in order to offer optimum compression.
This can come in handy once a project is finished to merge all the files, pass it through the ADVANCED_OPTIMIZATIONS algorithm
to get the most out of it.
See http://closure-compiler.appspot.com/ for further information.
and wanted a package with as few dependencies as possible.
Gives you access to the closure compression algo with a unified API. It also gives you access to code analyze via errors, warnings and authorizing via statistics.
Takes an hash with the following parameters(parameters ended with * are optionals):
You can also use an array reference containing multiple urls or raw source code.
See CONSTANTS section for further information about the algorithms.
Specify the informations you will get back from the service. it accepts either a scalar or an array reference. You can specify them by using the following constants:
See http://code.google.com/intl/ja/closure/compiler/docs/api-ref.html#output_info for further information.
Specify the format of the response. It can be one of the following constants:
- TEXT return the output in raw text format with the information set with your output_info settings (default). - XML return the output in XML format with the information set with your output_info settings. - JSON return the output in JSON format with the information set with your output_info settings.
See http://code.google.com/intl/ja/closure/compiler/docs/api-ref.html#out for further information.
Specifies the amount of information you will get when you set the output_info to WARNINGS. You can specify them by using one of the following constants:
- DEFAULT default - QUIET - VERBOSE
See http://code.google.com/intl/ja/closure/compiler/docs/api-ref.html#warn for further information.
Set by default to 5s. You can modify it if you need to:
Fail to connect to http://closure-compiler.appspot.com/compile: ...
... is not in:...(list of possible value)
One of the optional parameter received does not contain an authorized predefined value.
The following url could not be fetched::...(url that failed)
The module could not connect to the url. See the detail error to get a hint.
- optional parameters
none of the following optional parameters are supported:
- use_closure_library - formatting - output_file_name - exclude_default_externs - externs_url - js_externs
- copyrights information
If you use the Closure Compiler annotations, you can keep the copyright notice within the comments. If you do not use them though, this package will still offer you a way to add copyright notice after the compression is done.
- other related modules
If you do me the favor to _use_ this module and find a bug, please email me i will try to do my best to fix it (patches welcome)!
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 187:
You can't have =items (as at line 191) unless the first thing after the =over is an =item
- Around line 422:
'=item' outside of any '=over'
Module Install Instructions
For more information on module installation, please visit the detailed CPAN module installation guide.