Commit | Line | Data |
---|---|---|
6a1aa64f DV |
1 | #!/bin/bash |
2 | # Generates a single JS file that's easier to include. | |
43f15770 | 3 | |
74a5af31 DV |
4 | # Pack all the JS together. |
5 | ||
6 | # This list needs to be kept in sync w/ the one in dygraph-dev.js | |
6a1aa64f | 7 | cat \ |
74a5af31 | 8 | dygraph-layout.js \ |
6a1aa64f DV |
9 | dygraph-canvas.js \ |
10 | dygraph.js \ | |
74a5af31 | 11 | dygraph-gviz.js \ |
f474c2a3 | 12 | rgbcolor/rgbcolor.js \ |
f18986e5 | 13 | strftime/strftime-min.js \ |
b4bd8805 | 14 | | perl -ne 'print unless m,REMOVE_FOR_COMBINED,..m,/REMOVE_FOR_COMBINED,' \ |
b2a516b8 DV |
15 | > /tmp/dygraph.js |
16 | ||
f18986e5 | 17 | java -jar yuicompressor-2.4.2.jar /tmp/dygraph.js \ |
b2a516b8 DV |
18 | > /tmp/dygraph-packed.js |
19 | ||
5709f0d5 DV |
20 | # TODO(danvk): ensure the dygraphs copyright, etc. gets into the packed js. |
21 | ||
b2a516b8 | 22 | cat \ |
b2a516b8 | 23 | /tmp/dygraph-packed.js \ |
6a1aa64f | 24 | > dygraph-combined.js |