Google Closure Tool is a suite of tools to help developers create rich web applications with JavaScript. It was developed by Google for use in their web applications such as Gmail, Google Docs and Google Maps.
Video Google Closure Tools
Closing Constructor
The Closure Compiler is a tool for creating JavaScript downloads and runs faster, at the expense of human readability. It does not compile from JavaScript to machine code, but rather compiles from JavaScript to more efficient JavaScript. It parses JavaScript, analyzes it, deletes dead code and rewrites and reduces what's left. It also checks for syntax, variable references, and types, and warns about common JavaScript pitfalls. It supports transpiling some ECMAScript 6 code into ECMAScript 3, so the programmer can write JavaScript using that feature, and run it in a browser or other environment that does not yet support it. (The Traceur Compiler is another Google project that supports ES6 to ES3 transpining.) The source code of closure can be compiled in three ways:
- From the command line:
- Java application that can be passed the list of JavaScript files to compile.
- npm package
google-closure-compiler-js
(no Java dependencies)
- Interactively in the browser:
- The Provisioning Services website provides a form for users to enter URLs that point to JavaScript sources or include JavaScript source code in the text box. The website will display with JavaScript optimized on the right for users to copy.
- HTTP POST API:
- The Closing Compiler Server receives a POST HTTP request. Parameters include JavaScript strings that will be optimized (or URLs pointing to it), optimization level, whether to include errors and warnings, and output format (JSON, XML, or text).
The Closure compiler also supports type checking through type annotations that should be written in JSDoc comments.
Ecosystem
Programming languages ââthat can leverage the benefits of JavaScript from Closure Tool. For example, Closure Compilers help make ClojureScript practical by generating compiled JavaScript code more efficiently.
Maps Google Closure Tools
Closure Library
The Closure Library is a JavaScript library, written specifically to take advantage of the Closure Compiler, based on modular architecture. It provides cross-browser functionality for DOM, Ajax and JSON manipulations and events, as well as more high-level objects such as the User Interface and Control widgets.
Closure Templates
Closure Templates is a templating system for generating HTML dynamically in Java and JavaScript.
Because the language appears to be referred to as the internal "Soy" to Google, and "Soybean" remains in some documentation and class, sometimes the Closing Templates are referred to as "Soy Templates".
Closing Stylesheets
This is a compiler that provides the full version of CSS, which is compiled into regular CSS. Internally on Google, an additional version of CSS is referred to as GSS.
See also
- Google Web Toolkit
- JSDoc
- TypeScript
References
External links
- Official website Package
- for TYPO3 Flow
Source of the article : Wikipedia