Tech Crunch writes:
Google has just announced that it is open-sourcing a set of tools its own developers use to build some of the company’s most well known products, including Gmail, Google Docs, and Google Maps.
The first tool is called the Closure Compiler, which helps developers optimize their JavaScript code by removing extra portions of comments and code. The Compiler also has a sister program called Inspector — a plugin for Firebug that allows developers to view their optimized code in the browser, with all of their original variable names and other data restored (typically optimized code strips variable names and formatting that makes it very difficult to read). Google is also releasing the Compiler as a web app and a RESTful API.
Google’s second release is a Library that includes many common functions used for building JavaScript apps & a new set of templates for Java and JavaScript
source: http://www.techcrunch.com/2009/11/05/google-open-sources-set-of-closure-tools-it-uses-to-build-its-own-apps/ |
Happy day for javascript developers |
Note that some of the Closure JavaScript library was released earlier this year as part of the DocType project (see http://blogoscoped.com/archive/2008-05-15-n21.html)
e.g. compare http://code.google.com/p/doctype/source/browse#svn/trunk/goog with http://code.google.com/p/closure-library/source/browse/#svn/trunk/closure/goog
(NB: the closure SVn view doesn't show all packages in this view, e.g. it excludes the ui package – http://closure-library.googlecode.com/svn/trunk/closure/goog/ui/) |
You can find more details on using Google Closure API with ASP.NET at http://www.bloggingdeveloper.com/post/C-Wrapper-for-Google-Closure-Compiler-Compressing-Javascript-Files-on-the-fly-with-ASPNET-and-Closure-Compiler.aspx.
It features a C# wrapper for the tool. |