mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +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 = {
|
APT_DEPENDENCIES = {
|
||||||
"trusty": [
|
"trusty": [
|
||||||
|
"closure-compiler",
|
||||||
"libffi-dev",
|
"libffi-dev",
|
||||||
"memcached",
|
"memcached",
|
||||||
"rabbitmq-server",
|
"rabbitmq-server",
|
||||||
|
|||||||
@@ -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/')
|
||||||
|
|||||||
Reference in New Issue
Block a user