Last active
August 29, 2015 14:17
-
-
Save alobato/8b0a9eb5ee827fc9c616 to your computer and use it in GitHub Desktop.
selective.js rails assets vendor
This file contains 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/bash | |
# Checkout vendor repo | |
echo "Cloning brianreavis/selectize.js github repo into tmp_vendor" | |
git clone https://github.com/brianreavis/selectize.js.git tmp_vendor | |
# Copy files | |
echo "Copying selectize.js" | |
mkdir -p app/assets/javascripts/vendor/selectize/ | |
cp tmp_vendor/dist/js/standalone/selectize.js app/assets/javascripts/vendor/selectize/selectize.js | |
echo "Copying css files" | |
mkdir -p app/assets/stylesheets/vendor/selectize/ | |
cp tmp_vendor/dist/css/*.css app/assets/stylesheets/vendor/selectize/ | |
# Delete vendor repo | |
echo "Removing cloned vendor repo" | |
rm -rf tmp_vendor | |
echo "Finished... You'll need to commit the changes. You should consider updating the changelog and gem version number" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment