Skip to content

Instantly share code, notes, and snippets.

@Kyle-Falconer
Created October 29, 2013 15:35
Show Gist options
  • Save Kyle-Falconer/7216991 to your computer and use it in GitHub Desktop.
Save Kyle-Falconer/7216991 to your computer and use it in GitHub Desktop.
Use closure compiler with a network drive
:: map drive Z to {network location of closure library}
:: @echo off
cls
::create a temporary drive letter mapped to your UNC root location
::and effectively CD to that location
pushd {network location of project folder}
python Z:\closure\closure\bin\calcdeps.py^
--path=Z:\closure\^
--output_mode="compiled"^
--compiler_jar=Z:\closure\other\compiler.jar^
--compiler_flag=--compilation_level=ADVANCED_OPTIMIZATIONS^
--compiler_flag=--use_types_for_optimization^
--compiler_flag=--warning_level=VERBOSE^
--input=Z:\closure\other\soyutils_usegoog.js^
--input=Z:\closure\closure\goog\deps.js^
--input={filename1}^
--input={filename2}^
--output_file={output filename}.min.js
:: --compiler_flag=--formatting=PRETTY_PRINT^
:: --compiler_flag=--debug^
::remove the temporary drive letter and return to your original location
popd
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment