Use a subset of PlotKit_Packed.js -> 30k savings
[dygraphs.git] / generate-combined.sh
CommitLineData
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
7cd plotkit_v091
8./scripts/pack.py Base Layout Canvas > /tmp/plotkit-packed.js
9cd ..
10
6a1aa64f
DV
11cat \
12mochikit_v14/packed/MochiKit/MochiKit.js \
43f15770 13/tmp/plotkit-packed.js \
6a1aa64f
DV
14dygraph-canvas.js \
15dygraph.js \
16> dygraph-combined.js