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 \ |
bef79a5b DS |
9 | strftime/strftime-min.js \ |
10 | rgbcolor/rgbcolor.js \ | |
11 | stacktrace.js \ | |
12 | dashed-canvas.js \ | |
13 | dygraph-options.js \ | |
74a5af31 | 14 | dygraph-layout.js \ |
6a1aa64f DV |
15 | dygraph-canvas.js \ |
16 | dygraph.js \ | |
dedb4f5f | 17 | dygraph-utils.js \ |
74a5af31 | 18 | dygraph-gviz.js \ |
846f3d2d | 19 | dygraph-interaction-model.js \ |
ccd9d7c2 | 20 | dygraph-range-selector.js \ |
48e614ac | 21 | dygraph-tickers.js \ |
e2c21500 | 22 | plugins/base.js \ |
cbe41be1 | 23 | plugins/annotations.js \ |
f8540c66 | 24 | plugins/axes.js \ |
72223c02 DV |
25 | plugins/chart-labels.js \ |
26 | plugins/grid.js \ | |
cbe41be1 | 27 | plugins/legend.js \ |
e2c21500 | 28 | plugins/install.js \ |
b4bd8805 | 29 | | perl -ne 'print unless m,REMOVE_FOR_COMBINED,..m,/REMOVE_FOR_COMBINED,' \ |
b2a516b8 DV |
30 | > /tmp/dygraph.js |
31 | ||
f18986e5 | 32 | java -jar yuicompressor-2.4.2.jar /tmp/dygraph.js \ |
b2a516b8 DV |
33 | > /tmp/dygraph-packed.js |
34 | ||
41da6a86 | 35 | ( |
a8b9a8e2 | 36 | echo '/*! @license Copyright 2011 Dan Vanderkam (danvdk@gmail.com) MIT-licensed (http://opensource.org/licenses/MIT) */' |
41da6a86 DV |
37 | cat /tmp/dygraph-packed.js |
38 | ) > dygraph-combined.js | |
4d3672ff | 39 | chmod a+r dygraph-combined.js |