3 # Reports compressed file sizes for each JS file in dygraphs.
5 # This list needs to be kept in sync w/ the one in dygraph-dev.js
6 # and the one in jsTestDriver.conf.
13 dygraph-interaction-model.js \
14 dygraph-range-selector.js \
16 rgbcolor
/rgbcolor.js \
17 strftime
/strftime-min.js \
20 plugins
/annotations.js \
22 plugins
/chart-labels.js \
27 base_size
=$
(cat $file |
wc -c
)
29 | perl
-ne
'print unless m,REMOVE_FOR_COMBINED,..m,/REMOVE_FOR_COMBINED,' \
31 min_size
=$
(java
-jar yuicompressor-2.4
.2.jar
/tmp
/dygraph.js |
gzip -c |
wc -c
)
33 echo "$min_size ($base_size) $file"