-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
41 lines (34 loc) · 893 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
# frozen_string_literal: true
namespace :color do
_targetdir = 'site'
desc 'Delete generated _site files'
task :clean do
system 'rm -fR _site *~'
end
desc 'Run the jekyll dev server'
task :server do
system 'jekyll serve --watch'
end
desc 'Build the pages.'
task :compile do
system './colorproc.rb > _partials/colors.html.erb'
system './erb_run.rb index.html.erb > index.html'
system './erb_run.rb oh-no.html.erb > oh-no.html'
system './erb_run.rb thank-you.html.erb > thank-you.html'
system './erb_run.rb about.html.erb > about.html'
end
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