Commit | Line | Data |
---|---|---|
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 | 5 | cat \ |
6a1aa64f DV |
6 | dygraph-canvas.js \ |
7 | dygraph.js \ | |
f474c2a3 | 8 | rgbcolor/rgbcolor.js \ |
f18986e5 | 9 | strftime/strftime-min.js \ |
b2a516b8 DV |
10 | > /tmp/dygraph.js |
11 | ||
f18986e5 | 12 | java -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 | 17 | cat \ |
b2a516b8 | 18 | /tmp/dygraph-packed.js \ |
6a1aa64f | 19 | > dygraph-combined.js |