Add update_normalize_css task
This commit is contained in:
parent
854db4a7f8
commit
7525324757
|
@ -10,5 +10,7 @@ _site/
|
||||||
bbin/
|
bbin/
|
||||||
gh-pages/
|
gh-pages/
|
||||||
site/_site/
|
site/_site/
|
||||||
|
.ruby-version
|
||||||
coverage
|
coverage
|
||||||
.ruby-version
|
.ruby-version
|
||||||
|
.sass-cache
|
||||||
|
|
9
Rakefile
9
Rakefile
|
@ -147,6 +147,15 @@ namespace :site do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
desc "Update normalize.css library to the latest version and minify"
|
||||||
|
task :update_normalize_css do
|
||||||
|
Dir.chdir("site/css") do
|
||||||
|
sh 'curl "http://necolas.github.io/normalize.css/latest/normalize.css" -o "normalize.scss"'
|
||||||
|
sh 'sass "normalize.scss":"normalize.css" --style compressed'
|
||||||
|
sh 'rm "normalize.scss"'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
desc "Commit the local site to the gh-pages branch and publish to GitHub Pages"
|
desc "Commit the local site to the gh-pages branch and publish to GitHub Pages"
|
||||||
task :publish => [:history] do
|
task :publish => [:history] do
|
||||||
# Ensure the gh-pages dir exists so we can generate into it.
|
# Ensure the gh-pages dir exists so we can generate into it.
|
||||||
|
|
Loading…
Reference in New Issue