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 | |
8d3d15af | 7 | # and the one in jsTestDriver.conf. |
6a1aa64f | 8 | cat \ |
74a5af31 | 9 | dygraph-layout.js \ |
6a1aa64f DV |
10 | dygraph-canvas.js \ |
11 | dygraph.js \ | |
dedb4f5f | 12 | dygraph-utils.js \ |
74a5af31 | 13 | dygraph-gviz.js \ |
846f3d2d | 14 | dygraph-interaction-model.js \ |
ccd9d7c2 | 15 | dygraph-range-selector.js \ |
48e614ac | 16 | dygraph-tickers.js \ |
f474c2a3 | 17 | rgbcolor/rgbcolor.js \ |
f18986e5 | 18 | strftime/strftime-min.js \ |
e2c21500 DV |
19 | plugins/base.js \ |
20 | plugins/legend.js \ | |
21 | plugins/install.js \ | |
b4bd8805 | 22 | | perl -ne 'print unless m,REMOVE_FOR_COMBINED,..m,/REMOVE_FOR_COMBINED,' \ |
b2a516b8 DV |
23 | > /tmp/dygraph.js |
24 | ||
f18986e5 | 25 | java -jar yuicompressor-2.4.2.jar /tmp/dygraph.js \ |
b2a516b8 DV |
26 | > /tmp/dygraph-packed.js |
27 | ||
41da6a86 | 28 | ( |
a06c73a4 | 29 | echo '/*! @license Copyright 2011 Dan Vanderkam (danvdk@gmail.com) MIT-licensed (http://opensource.org/licenses/MIT) */' |
41da6a86 DV |
30 | cat /tmp/dygraph-packed.js |
31 | ) > dygraph-combined.js | |
4d3672ff | 32 | chmod a+r dygraph-combined.js |