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 \
16 dygraph-plugin-base.js \
17 plugins
/annotations.js \
19 plugins
/range-selector.js \
20 plugins
/chart-labels.js \
23 dygraph-plugin-install.js \
25 base_size
=$
(cat $file |
wc -c
)
27 | perl
-ne
'print unless m,REMOVE_FOR_COMBINED,..m,/REMOVE_FOR_COMBINED,' \
29 min_size
=$
(java
-jar yuicompressor-2.4
.2.jar
/tmp
/dygraph.js |
gzip -c |
wc -c
)
31 echo "$min_size ($base_size) $file"