Add update_normalize_css task

This commit is contained in:
Anatol Broder 2013-08-21 23:02:49 +02:00
parent 854db4a7f8
commit 7525324757
2 changed files with 11 additions and 0 deletions

2
.gitignore vendored
View File

@ -10,5 +10,7 @@ _site/
bbin/
gh-pages/
site/_site/
.ruby-version
coverage
.ruby-version
.sass-cache

View File

@ -147,6 +147,15 @@ namespace :site do
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"
task :publish => [:history] do
# Ensure the gh-pages dir exists so we can generate into it.