remove PlotKit entirely. Yay!
[dygraphs.git] / generate-combined.sh
1 #!/bin/bash
2 # Generates a single JS file that's easier to include.
3 # This packed JS includes a partial copy of MochiKit and PlotKit.
4 # It winds up being 146k uncompressed and 37k gzipped.
5
6 # Do the same for MochiKit. This save another 77k.
7 cd mochikit_v14
8 ./scripts/pack.py \
9 Base Iter DOM Style Color Signal \
10 > /tmp/mochikit-packed.js
11 cd ..
12
13 # Pack the dygraphs JS. This saves another 22k.
14 cat \
15 dygraph-canvas.js \
16 dygraph.js \
17 > /tmp/dygraph.js
18
19 java -jar custom_rhino.jar -c /tmp/dygraph.js \
20 > /tmp/dygraph-packed.js
21
22 # TODO(danvk): ensure the dygraphs copyright, etc. gets into the packed js.
23
24 cat \
25 /tmp/mochikit-packed.js \
26 strftime/strftime-min.js \
27 /tmp/dygraph-packed.js \
28 > dygraph-combined.js