Skip to content

Instantly share code, notes, and snippets.

@alanning
Created September 12, 2014 22:07
Show Gist options
  • Select an option

  • Save alanning/e9a61744000e177332d1 to your computer and use it in GitHub Desktop.

Select an option

Save alanning/e9a61744000e177332d1 to your computer and use it in GitHub Desktop.
Bundle script that prevents velocity packages from going to production
#!/bin/sh
# run me in your app directory
# $ chmod u+x bundle
# $ ./bundle
set -o nounset
set -o errexit
echo "Pre-velocity-removal package file:"
cat .meteor/packages
echo ""
cp .meteor/packages .meteor/packages.orig
sed -e '/velocity/d' -e '/jasmine/d' -e '/mocha/d' .meteor/packages > .meteor/packages.new
mv .meteor/packages.new .meteor/packages
echo "Post-velocity-removal package file:"
cat .meteor/packages
echo ""
echo "meteor bundle bundle.tar.gz"
echo ""
# uncomment this line to perform bundle
#meteor bundle bundle.tar.gz
mv .meteor/packages.orig .meteor/packages
echo "Packages file restored to original version"
Copy link
Copy Markdown

ghost commented Sep 12, 2014

Nice. Works great with the new 0.9 jasmine example. Thanks for creating the script. I will use it for our startup app soon. ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment