Google Closure Tools
An npm package that contains the closure tools with a small API that provides the path to the actual files.
Quick Start
Install...
npm install closure-tools --save-deps
Require...
var closureTools = ;
Get the path:
var builderPath = closureTools;console; // prints:// node_modules/closure-tools/closure-bin/build/closurebuilder.py
getPath( filename )
Get the relative path to your package's root, for the defined filename
.
The
filename
can have any value from the closure bin folder (see below).
Full Example
var closureTools = exec = ; /* ... */ // prepare the closurebuilder commandvar command = closureTools + ' ' + buildOptions; // run the closureTools command;
bin
Contents
The Closure This is the current breakout of the Google Closure's Tools folder, and in effect all the possible values the getPath()
method will make sense:
build/closurebuilder.pybuild/depstree_test.pybuild/source_test.pybuild/depstree.pybuild/depswriter.pybuild/source.pybuild/treescan.pybuild/jscompiler.pycalcdeps.pyscopify.py
Release History
- v0.1.4, 5 Nov 2013 Updated closure binaries to latest.