-
Notifications
You must be signed in to change notification settings - Fork 41
Notes for Old Closure Compiler
Volker Sorge edited this page Jul 13, 2017
·
1 revision
Node dependencies you have to install:
closure
closure-compiler
closure-library
xmldom
xpath
commander
xml-mapping
Using npm run
npm install closure closure-compiler closure-library xmldom xpath commander xml-mapping
In version 1.43 of the closure library there is a mistake in the file
closure-library/closure/bin/build/jscompiler.py
You might need to change
# Attempt 32-bit mode if we're <= Java 1.7
if java_version >= 1.7:
args += ['-d32']
to
# Attempt 32-bit mode if we're <= Java 1.7
if java_version <= 1.7:
args += ['-d32']
clean_closure: clean_compiler clean_import_script
clean_compiler:
@sed -i s/\'-d32\'//g $(CLOSURE_ROOT)/jscompiler.py
clean_import_script:
@sed -i s/'goog.global.CLOSURE_IMPORT_SCRIPT\;'/'goog.global.CLOSURE_IMPORT_SCRIPT = null\;'/g $(CLOSURE_LIB)/closure/goog/base.js
CLOSURE_LIB_LINK = $(SRC_DIR)/$(CLOSURE_LIB_NAME)
link: $(CLOSURE_LIB_LINK)
$(CLOSURE_LIB_LINK):
@echo "Making link..."
@ln -s $(CLOSURE_LIB) $(CLOSURE_LIB_LINK)