mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 05:53:43 +00:00
Install closure-compiler directly for use on the Dev VM.
(imported from commit 0dae11b46364026acf29e1fc953401162db68746)
This commit is contained in:
@@ -16,6 +16,7 @@ SUPPORTED_PLATFORMS = {
|
||||
|
||||
APT_DEPENDENCIES = {
|
||||
"trusty": [
|
||||
"closure-compiler",
|
||||
"libffi-dev",
|
||||
"memcached",
|
||||
"rabbitmq-server",
|
||||
|
||||
@@ -74,7 +74,13 @@ if prev_deploy:
|
||||
changed_files.add(os.path.join(STATIC_PATH, 'templates/compiled.js'))
|
||||
|
||||
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
|
||||
MIN_DIR = os.path.join(STATIC_PATH, 'min/')
|
||||
|
||||
Reference in New Issue
Block a user