diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-12-05 03:59:26 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-12-08 21:35:14 -0500 |
commit | d2aa8daab68a0e7d54cab90abe06121cf65ce9a2 (patch) | |
tree | 52f021fcc695c7acc8038616af3bfe790614b102 /jarmonbuild/commands.py | |
parent | 16390e6c4daa178a3ff624804aed0230f0b2fe92 (diff) |
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.
Diffstat (limited to 'jarmonbuild/commands.py')
-rw-r--r-- | jarmonbuild/commands.py | 22 |
1 files changed, 16 insertions, 6 deletions
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" } |