-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
48 lines (38 loc) · 870 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
desc "Parse haml layouts"
task :haml do
print "Parsing Haml layouts..."
system(%{
cd _layouts/ &&
for f in *.haml; do [ -e $f ] && haml $f ${f%.haml}.html; done
})
puts "done."
end
desc "synchronize with S3"
task :sync do
system "s3cmd sync --rr --delete-removed _site/ s3://robin.wenglewski.de"
end
desc "Launch preview environment"
task :preview => [:haml, :clean] do
system "jekyll --auto --server"
end
desc "Build site"
task :build => [:haml, :clean] do |task, args|
system "jekyll"
end
task :clean do
system "rm -rf _site"
end
namespace :compass do
desc 'Delete temporary compass files'
task :clean do
system "rm -fR css/*"
end
desc 'Run the compass watch script'
task :watch do
system "compass watch"
end
desc 'Compile sass scripts'
task :compile => [:clean] do
system "compass compile"
end
end