Last active
July 22, 2020 18:34
-
-
Save blairanderson/4d0257ae3e9b32e5049ef76c4bce0aa0 to your computer and use it in GitHub Desktop.
Rakefile for fetching the current dist/sass/etc folders from the bootstrap and tachyons GitHub repository
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
namespace :fetch do | |
desc "fetch tachyons scss files" | |
task :tachyons do | |
`curl -LkSs https://github.com/tachyons-css/tachyons-sass/archive/v4.7.1.tar.gz | tar xz` | |
`mv -f ./tachyons-sass-*/scss ./_sass/tachyons-sass` | |
`mv -f ./tachyons-sass-*/tachyons.scss ./_sass/tachyons-sass` | |
`rm -rf ./tachyons-sass-*` | |
end | |
desc "fetch bootstrap scss files" | |
task :bootstrap do | |
current_bootstrap_version = "5.0.0-alpha1" | |
target = "public/bootstrap/" | |
source = "dist" # "scss" or "js" or "build" - see https://github.com/twbs/bootstrap/tree/v5.0.0-alpha1 for optional folders | |
`rm -rf #{target}` | |
`mkdir #{target}` | |
`curl -LkSs https://github.com/twbs/bootstrap/archive/v#{current_bootstrap_version}.tar.gz | tar xz` | |
`mv -fv ./bootstrap-#{current_bootstrap_version}/#{source}/* ./#{target}` | |
`rm -rf bootstrap-#{current_bootstrap_version}/` | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to Fetch Bootstrap
DIST
using RAKE$ rake fetch:bootstrap