Commit | Line | Data |
---|---|---|
6a1aa64f DV |
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. | |
43f15770 DV |
4 | |
5 | # Generate the packed version of the subset of PlotKit needed by dygraphs. | |
6 | # This saves ~30k | |
7 | cd plotkit_v091 | |
8 | ./scripts/pack.py Base Layout Canvas > /tmp/plotkit-packed.js | |
9 | cd .. | |
10 | ||
79f17b42 DV |
11 | # Do the same for MochiKit. This save ~90k. |
12 | cd mochikit_v14 | |
13 | ./scripts/pack.py \ | |
14 | Base Iter Format DOM Style Color Signal \ | |
15 | > /tmp/mochikit-packed.js | |
16 | cd .. | |
17 | ||
6a1aa64f | 18 | cat \ |
79f17b42 | 19 | /tmp/mochikit-packed.js \ |
43f15770 | 20 | /tmp/plotkit-packed.js \ |
6a1aa64f DV |
21 | dygraph-canvas.js \ |
22 | dygraph.js \ | |
23 | > dygraph-combined.js |