remove dependence on MochiKit.Signal
[dygraphs.git] / generate-combined.sh
... / ...
CommitLineData
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.
7cd mochikit_v14
8./scripts/pack.py \
9Base Color DOM Style \
10> /tmp/mochikit-packed.js
11cd ..
12
13# Pack the dygraphs JS. This saves another 22k.
14cat \
15dygraph-canvas.js \
16dygraph.js \
17> /tmp/dygraph.js
18
19java -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
24cat \
25/tmp/mochikit-packed.js \
26strftime/strftime-min.js \
27/tmp/dygraph-packed.js \
28> dygraph-combined.js