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