ci(aio): Also track umd.min.js file size

This commit is contained in:
Yuan Gao 2017-06-09 10:24:11 -07:00 committed by Matias Niemelä
parent 204a2cf942
commit ca970f5ee5
1 changed files with 7 additions and 0 deletions

View File

@ -34,6 +34,13 @@ for filename in dist/*.bundle.js; do
fi
done
# Also track sizes of bundle/*umd.min.js files
for filename in node_modules/@angular/*/bundles/*.umd.min.js; do
size=$(stat -c%s "$filename")
label=$(echo "$filename" | sed "s/.*\///" | sed "s/\..*//")
payloadData="$payloadData\"umd/$label\": $size, "
done
# Add Timestamp
timestamp=$(date +%s)
payloadData="$payloadData\"timestamp\": $timestamp, "