You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
site/rakefile

13 lines
281 B

task default: :deploy
task :optipng do
system 'find source/images -name "*.png" | xargs optipng -o7 -zm1-9 -f5 -strip all'
end
task :build do
system 'bundle exec middleman build'
end
task deploy: :build do
system 'rsync -axPv build/ server:www/ --exclude "glyphicons-*"'
end