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.
40 echo '/*! @license Copyright 2014 Dan Vanderkam (danvdk@gmail.com) MIT-licensed (http://opensource.org/licenses/MIT) */'
44 node_modules
/uglify-js
/bin
/uglifyjs \
45 $
(GetSources |
xargs) \
46 --compress warnings
=false \
48 --define DEBUG
=false \
49 --preamble
"$(Copyright)" \
62 compress*|cat_compress
*)
66 CatCompressed
--source-map dygraph-combined.js.map \
68 chmod a
+r dygraph-combined.js dygraph-combined.js.map
71 echo >&2 "Unknown action '$ACTION'"