Skip to content

Instantly share code, notes, and snippets.

@alobato
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alobato/8b0a9eb5ee827fc9c616 to your computer and use it in GitHub Desktop.
Save alobato/8b0a9eb5ee827fc9c616 to your computer and use it in GitHub Desktop.
selective.js rails assets vendor
#!/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