danvk/dygraphs — comment on commit 49302d658811c6d883924ef926bcd8f2e21bc931
File:  line 0
By klausw-g:

I think parsing and re-emitting it would have other advantages, for example it could check the default options and warn if they are inconsistent, or (preferably) define them in one place only instead of duplicating them.

For example, it could write two copies of the options reference, a stripped-down one with just the defaults but no docstrings for use in dygraph-combined.js, and the separate JSON full output.

Would you consider adding rhino or a similar command-line suitable Javascript engine as a build prerequisite? People could still develop and test using the dygraph-dev.js file if they don't have the needed tools - this already requires make, sh, Perl, Java, and Python, so it shouldn't be a big additional hardship.