Created
September 12, 2014 22:07
-
-
Save alanning/e9a61744000e177332d1 to your computer and use it in GitHub Desktop.
Bundle script that prevents velocity packages from going to production
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice. Works great with the new 0.9 jasmine example. Thanks for creating the script. I will use it for our startup app soon. ;-)