Skip to content

Instantly share code, notes, and snippets.

@fayimora
Forked from joliss/ember-size.sh
Created May 28, 2013 11:26
Show Gist options
  • Save fayimora/5662091 to your computer and use it in GitHub Desktop.
Save fayimora/5662091 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Log the sizes of the Ember distribution like on
# https://gist.github.com/joliss/5570851
for i in {0..1000}; do
rm -r dist >&2
git submodule update --init >&2
bundle install --quiet >&2
bundle exec rake dist >&2
echo "$(git rev-parse HEAD)" "$(gzip -9 < dist/ember.min.js | wc -c)"
git checkout Gemfile.lock >&2
git checkout HEAD^ >&2
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment