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.
6 # Generate the packed version of the subset of PlotKit needed by dygraphs.
9 .
/scripts
/pack.py Base Layout Canvas
> /tmp
/plotkit-packed.js
12 # Do the same for MochiKit. This save another 77k.
15 Base Iter DOM Style Color Signal \
16 > /tmp
/mochikit-packed.js
19 # Pack the dygraphs JS. This saves another 22k.
25 java
-jar plotkit_v091
/scripts
/custom_rhino.jar
-c
/tmp
/dygraph.js \
26 > /tmp
/dygraph-packed.js
29 /tmp
/mochikit-packed.js \
30 /tmp
/plotkit-packed.js \
31 strftime
/strftime-min.js \
32 /tmp
/dygraph-packed.js \