switch to YUI compressor for making packed JS -- 49k -> 42k
[dygraphs.git] / generate-combined.sh
CommitLineData
6a1aa64f
DV
1#!/bin/bash
2# Generates a single JS file that's easier to include.
43f15770 3
f474c2a3 4# Pack the dygraphs JS and rgbcolor
6a1aa64f 5cat \
6a1aa64f
DV
6dygraph-canvas.js \
7dygraph.js \
f474c2a3 8rgbcolor/rgbcolor.js \
f18986e5 9strftime/strftime-min.js \
b2a516b8
DV
10> /tmp/dygraph.js
11
f18986e5 12java -jar yuicompressor-2.4.2.jar /tmp/dygraph.js \
b2a516b8
DV
13> /tmp/dygraph-packed.js
14
5709f0d5
DV
15# TODO(danvk): ensure the dygraphs copyright, etc. gets into the packed js.
16
b2a516b8 17cat \
b2a516b8 18/tmp/dygraph-packed.js \
6a1aa64f 19> dygraph-combined.js