Install closure-compiler directly for use on the Dev VM.

(imported from commit 0dae11b46364026acf29e1fc953401162db68746)
This commit is contained in:
Tim Abbott
2015-09-20 15:01:49 -07:00
parent 38ca08b18f
commit efa7a90ecc
2 changed files with 8 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ SUPPORTED_PLATFORMS = {
APT_DEPENDENCIES = { APT_DEPENDENCIES = {
"trusty": [ "trusty": [
"closure-compiler",
"libffi-dev", "libffi-dev",
"memcached", "memcached",
"rabbitmq-server", "rabbitmq-server",

View File

@@ -74,7 +74,13 @@ if prev_deploy:
changed_files.add(os.path.join(STATIC_PATH, 'templates/compiled.js')) changed_files.add(os.path.join(STATIC_PATH, 'templates/compiled.js'))
JS_SPECS = settings.JS_SPECS JS_SPECS = settings.JS_SPECS
CLOSURE_BINARY = 'tools/closure-compiler/run' CLOSURE_BINARY = '/usr/bin/closure-compiler'
if not os.path.exists(CLOSURE_BINARY):
CLOSURE_BINARY = 'tools/closure-compiler/run'
if not os.path.exists(CLOSURE_BINARY):
print "closure-compiler not installed; the Vagrant provision.py installs it via apt "\
"or you can manually unpack http://dl.google.com/closure-compiler/compiler-latest.zip to tools/closure-compiler"
sys.exit(1)
# Where to put minified JS and source maps # Where to put minified JS and source maps
MIN_DIR = os.path.join(STATIC_PATH, 'min/') MIN_DIR = os.path.join(STATIC_PATH, 'min/')