X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=closure-todo.txt;h=bd428952599beff2666e546e3403533b3dd6fd12;hb=72621b9af29dbd2e1729c3d841e2eef8027ca9b7;hp=8244196e7e2ed274b27ee74933798a5e19ae75f2;hpb=0bb99c820c1b6302ed9d4c389be9c42caa0145f9;p=dygraphs.git diff --git a/closure-todo.txt b/closure-todo.txt index 8244196..bd42895 100644 --- a/closure-todo.txt +++ b/closure-todo.txt @@ -1,22 +1,40 @@ +Many of the functions and methods in the dygraphs source have some form of +Closure annotations on them ("@param", "@return", "@private", etc.). + +These provide some documentation value, but they were largely written by +developers who had never used the Closure Compiler and so the syntax is +often not quite correct. + +This file tracks which files have been fully "closurized", i.e. compile +under the Closure Compiler without any errors or warnings. + Core: - dygraph-canvas.js -- dygraph-gviz.js - dygraph-interaction-model.js - dygraph-layout.js -- dygraph-options.js +x dygraph-options.js - dygraph-range-selector.js -- dygraph-tickers.js - dygraph.js +x dygraph-gviz.js +x dygraph-tickers.js x dygraph-options-reference.js x dygraph-utils.js x dashed-canvas.js +- dygraph-plugin-base.js +- dygraph-plugin-install.js Plugins: - plugins/annotations.js - plugins/axes.js -- plugins/base.js - plugins/chart-labels.js - plugins/grid.js -- plugins/install.js - plugins/legend.js +Others: +x rgbcolor/rgbcolor.js + +Here's a command that can be used to build dygraphs using the closure +compiler: +java -jar ../../closure-compiler-read-only/build/compiler.jar --js=dygraph-utils.js --js=dashed-canvas.js --js=dygraph-options-reference.js --js=dygraph-tickers.js --js=dygraph-gviz.js --js=dygraph-options.js --js_output_file=/tmp/out.js --compilation_level ADVANCED_OPTIMIZATIONS --warning_level VERBOSE --externs dygraph-externs.js + +As each file is closurized, it can be added as a "--js" parameter.