Last Updated: September 09, 2019
·
1.094K
· MarcQualie

Keep Bootstrap Updated

This is a simple rake task I created to keep bootstrap up to date on the latest version. It also keeps font awesome and jquery up to date.

task :upgrade_ui do
    sh "wget -O bootstrap.zip http://twitter.github.io/bootstrap/assets/bootstrap.zip"
    sh "wget -O font-awesome.zip http://fortawesome.github.io/Font-Awesome/assets/font-awesome.zip"
    sh "wget -O jquery-latest.min.js http://code.jquery.com/jquery-latest.min.js"
    sh "unzip -o bootstrap.zip"
    sh "unzip -o font-awesome.zip"
    sh "cp -r bootstrap/* public/"
    sh "cp -r font-awesome/* public/"
    sh "mv jquery-latest.min.js public/js/jquery.min.js"
    sh "rm -rf bootstrap bootstrap.zip* font-awesome font-awesome.zip* jquery-latest.min.js*"
end

Thanks to @scottymeuk for pointing out the jQuery update link