An npm package that contains the closure tools with a small API that provides the path to the actual files.
npm install closure-tools --save-deps
var closureTools = ;
Get the path:
var builderPath = closureTools;console;// prints:// node_modules/closure-tools/closure-bin/build/closurebuilder.py
Get the relative path to your package's root, for the defined
filenamecan have any value from the closure bin folder (see below).
var closureTools =exec = ;/* ... */// prepare the closurebuilder commandvar command = closureTools + ' ' + buildOptions;// run the closureTools command;
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: