From d2aa8daab68a0e7d54cab90abe06121cf65ce9a2 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 5 Dec 2016 03:59:26 -0500 Subject: Move the closure-compiler parameters into commands.py This is clearer than having the old dependencies.js describe the new one. Build processes should be DAGs. --- jarmonbuild/commands.py | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'jarmonbuild/commands.py') diff --git a/jarmonbuild/commands.py b/jarmonbuild/commands.py index d60615a..5dfa10e 100644 --- a/jarmonbuild/commands.py +++ b/jarmonbuild/commands.py @@ -280,12 +280,22 @@ class BuildJavascriptDependenciesCommand(BuildCommand): 'docs/examples/assets/js/dependencies.js') # Get the closure params from the original file - params = [] - for line in open(depjs_path): - line = line.strip() - if line.startswith('// @'): - key, val = line.lstrip('/ @').strip().split(None, 1) - params.append((key.strip(), val.strip())) + params = [ + ('code_url', 'http://code.jquery.com/jquery-1.6.3.js'), + ('code_url', 'https://raw.github.com/flot/flot/master/excanvas.js'), + ('code_url', 'https://raw.github.com/flot/flot/master/jquery.flot.js'), + ('code_url', 'https://raw.github.com/flot/flot/master/jquery.flot.stack.js'), + ('code_url', 'https://raw.github.com/flot/flot/master/jquery.flot.selection.js'), + ('code_url', 'http://javascriptrrd.cvs.sourceforge.net/viewvc/javascriptrrd/v0/src/lib/rrdFile.js'), + ('code_url', 'http://javascriptrrd.cvs.sourceforge.net/viewvc/javascriptrrd/v0/src/lib/binaryXHR.js'), + ('code_url', 'https://raw.github.com/jquerytools/jquerytools/dev/src/dateinput/dateinput.js'), + ('code_url', 'https://raw.github.com/jquerytools/jquerytools/dev/src/tabs/tabs.js'), + ('code_url', 'https://raw.github.com/jquerytools/jquerytools/dev/src/toolbox/toolbox.history.js'), + ('compilation_level', 'SIMPLE_OPTIMIZATIONS'), + ('formatting', 'print_input_delimiter'), + ('output_format', 'text'), + ('output_info', 'compiled_code'), + ] # Always use the following value for the Content-type header. headers = { "Content-type": "application/x-www-form-urlencoded" } -- cgit v1.2.3