Sha256: 33a868a29a006d33ce02640aeed2764a9f7923c3a9308e00bca49dc72f58cde4

Contents?: true

Size: 750 Bytes

Versions: 4

Compression:

Stored size: 750 Bytes

Contents

#!/bin/bash

# Checkout vendor repo
echo "Cloning selectize/selectize.js github repo into tmp_vendor"
git clone https://github.com/selectize/selectize.js.git tmp_vendor

# Copy files
echo "Copying selectize.js"
cp tmp_vendor/dist/js/standalone/selectize.js vendor/assets/javascripts/selectize.js
echo "Copying css files"
cp tmp_vendor/dist/css/*.css vendor/assets/stylesheets/
echo "Moving css to scss"
cd vendor/assets/stylesheets/
find ./ -name "*.css" | xargs -I '{}' basename '{}' | sed 's/\.css//' | xargs -I '{}' mv '{}.css' '{}.scss'
cd ../../../

# 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"

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
selectize-rails_kwyoung11-0.12.8 update_from_vendor.sh
selectize-rails-0.12.6 update_from_vendor.sh
selectize-rails-0.12.5 update_from_vendor.sh
selectize-rails-0.12.4.1 update_from_vendor.sh