ClosureBuilder

Closure Builder
Download

ClosureBuilder Ranking & Summary

Advertisement

  • Rating:
  • License:
  • The Apache License 2.0
  • Publisher Name:
  • Andrey Churin
  • Publisher web site:
  • http://code.google.com/u/aachurin/

ClosureBuilder Tags


ClosureBuilder Description

Closure Builder What is the Closure Library?The Closure Library is a broad, modular, well-tested, and cross-browser JavaScript library. You can pull just what you need from a large set of reusable UI widgets and controls, and from lower-level utilities for DOM manipulation, server communication, animation, data structures, unit testing, rich-text editing, and more.Install Closure Builderpip install ClosureBuilderExtra functionality * css obfuscation and minification Examplefoo1.css@variables { foo1-color: green; foo1-color-extra: red;}.foo1 { color: var(foo1-color);}.foo1-extra { color: var(foo1-color-extra);}foo2.css@variables { foo2-color: blue; foo1-color-extra: white; /* override */}.foo2 { color: var(foo2-color);}/* DO NOT USE goog.getCssName with this class name @suppress {foo2-hold} */.foo2-hold { color: yellow;}foo1.jsgoog.provide('foo1')goog.resource('foo1.css')foo2.jsgoog.provide('foo2')goog.require('foo1')goog.resource('foo2.css')/** * show obfuscated classes * @final */foo2.somefn = function(){ alert(goog.getCssName('foo2')) alert(goog.getCssName('foo1')) alert(goog.getCssName('foo1-extra'))}foo2.somefn()Command:closure-builder \--compiler_flags=--compilation_level=ADVANCED_OPTIMIZATIONS \--output_mode=compiled \--compiler_jar=/path/to/closure-compiler.jar \--root=/path/to/closure-library \--root=/path/to/foo-project \--namespace=foo2 \--output_file compiled.jsResultcompiled.css._b{color:green}._b-c{color:white}._d{color:blue}.foo2-hold{color:yellow}compiled.jsalert("_d");alert("_b");alert("_b-c"); Requirements: · Python


ClosureBuilder Related Software