-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rakefile
46 lines (39 loc) · 850 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
require "rake"
require "open-uri"
namespace :jekyll do
desc "Delete generated _site files"
task :clean do
sh "rm -fR _site"
end
desc "Run the jekyll dev server"
task :server do
sh "jekyll server --watch"
end
desc "Build the website"
task :compile => [:clean, 'compass:clean', 'compass:compile'] do
sh "jekyll build"
end
end
namespace :compass do
desc "Delete temporary compass files"
task :clean do
sh "rm -fR css/*"
end
desc "Run the compass watch script"
task :watch do
sh "compass watch"
end
desc "Compile sass scripts"
task :compile => [:clean] do
sh "compass compile"
end
end
desc "Deploy the website"
task :deploy => ["jekyll:compile"] do
begin
require File.expand_path("deploy")
Deployer.deploy!
rescue LoadError
puts "You're not allowed to deploy!"
end
end