2 # Generates a single JS file that's easier to include.
5 # This list needs to be kept in sync w/ the one in dygraph-dev.js
6 # and the one in jsTestDriver.conf. Order matters, except for the plugins.
16 dygraph-interaction-model.js \
18 dygraph-plugin-base.js \
20 dygraph-plugin-install.js \
21 datahandler
/datahandler.js \
22 datahandler
/default.js \
23 datahandler
/default-fractions.js \
25 datahandler
/bars-custom.js \
26 datahandler
/bars-error.js \
27 datahandler
/bars-fractions.js
33 # Pack all the JS together.
37 | perl
-ne
'print unless m,REMOVE_FOR_COMBINED,..m,/REMOVE_FOR_COMBINED,'
41 echo '/*! @license Copyright 2014 Dan Vanderkam (danvdk@gmail.com) MIT-licensed (http://opensource.org/licenses/MIT) */'
47 |
grep -v
'"use strict";' \
48 | node_modules
/uglify-js
/bin
/uglifyjs
-c warnings
=false
-m
60 compress*|cat_compress
*)
64 CatCompressed
> dygraph-combined.js
65 chmod a
+r dygraph-combined.js
68 echo >&2 "Unknown action '$ACTION'"