| 1 | #!/bin/bash |
| 2 | |
| 3 | # This script runs dygraphs through the Closure Compiler. This checks for |
| 4 | # errors (both in the JS and in the jsdoc) and flags type errors as WARNINGS. |
| 5 | |
| 6 | # It outputs minified JS to a temp file. This should be ignored for now, until |
| 7 | # it's fully functional. |
| 8 | |
| 9 | java -jar ../../closure-compiler-read-only/build/compiler.jar \ |
| 10 | --compilation_level ADVANCED_OPTIMIZATIONS \ |
| 11 | --warning_level VERBOSE \ |
| 12 | --output_wrapper='(function() {%output%})();' \ |
| 13 | --js ../../closure-library-read-only/closure/goog/base.js \ |
| 14 | --js=dashed-canvas.js \ |
| 15 | --js=dygraph-options.js \ |
| 16 | --js=dygraph-layout.js \ |
| 17 | --js=dygraph-canvas.js \ |
| 18 | --js=dygraph.js \ |
| 19 | --js=dygraph-utils.js \ |
| 20 | --js=dygraph-gviz.js \ |
| 21 | --js=dygraph-interaction-model.js \ |
| 22 | --js=dygraph-tickers.js \ |
| 23 | --js=dygraph-plugin-base.js \ |
| 24 | --js=plugins/annotations.js \ |
| 25 | --js=plugins/axes.js \ |
| 26 | --js=plugins/chart-labels.js \ |
| 27 | --js=plugins/grid.js \ |
| 28 | --js=plugins/legend.js \ |
| 29 | --js=plugins/range-selector.js \ |
| 30 | --js=dygraph-plugin-install.js \ |
| 31 | --js=dygraph-options-reference.js \ |
| 32 | --js=datahandler/datahandler.js \ |
| 33 | --js=datahandler/default.js \ |
| 34 | --js=datahandler/default-fractions.js \ |
| 35 | --js=datahandler/bars.js \ |
| 36 | --js=datahandler/bars-custom.js \ |
| 37 | --js=datahandler/bars-error.js \ |
| 38 | --js=datahandler/bars-fractions.js \ |
| 39 | --js=dygraph-exports.js \ |
| 40 | --externs dygraph-internal.externs.js \ |
| 41 | --externs gviz-api.js \ |
| 42 | --js_output_file=/tmp/out.js |