This repository has been archived by the owner on Apr 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
82 lines (67 loc) · 2.07 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
desc %{
does rm -fR _site/
}
task :clean do
sh('rm -fR _site/')
end
desc %{
generate (continually) and serve the Jekyll site on port 4000
}
task :serve do
puts
puts ' http://localhost:4000/'
puts
sh('bundle exec jekyll serve --watch')
end
desc "shortcut for 'rake serve'"
task :s => :serve
desc %{
builds the jekyll site
}
task :build do
sh('bundle exec jekyll build')
end
desc "shortcut for 'rake build'"
task :b => :build
desc %{
triggers Compass compilation
}
task :css do
sh('bundle exec compass compile _compass/')
end
desc "shortcut for 'rake css'"
task :c => :css
# hidden, used only once
task :copy do
# bootstrap js files order matters
# the order is given in _compass/vendor/bootstrap/javascript/bootstrap.js
sh(
'java -jar _tools/google-closure-compiler.jar ' +
'--warning_level DEFAULT ' +
'--language_in ECMASCRIPT5 ' +
'--js' +
' _compass/vendor/bootstrap/javascripts/bootstrap-transition.js' +
' _compass/vendor/bootstrap/javascripts/bootstrap-affix.js' +
' _compass/vendor/bootstrap/javascripts/bootstrap-alert.js' +
' _compass/vendor/bootstrap/javascripts/bootstrap-button.js' +
' _compass/vendor/bootstrap/javascripts/bootstrap-carousel.js' +
' _compass/vendor/bootstrap/javascripts/bootstrap-collapse.js' +
' _compass/vendor/bootstrap/javascripts/bootstrap-dropdown.js' +
' _compass/vendor/bootstrap/javascripts/bootstrap-modal.js' +
' _compass/vendor/bootstrap/javascripts/bootstrap-scrollspy.js' +
' _compass/vendor/bootstrap/javascripts/bootstrap-tab.js' +
' _compass/vendor/bootstrap/javascripts/bootstrap-tooltip.js' +
' _compass/vendor/bootstrap/javascripts/bootstrap-popover.js' +
' _compass/vendor/bootstrap/javascripts/bootstrap-typeahead.js' +
' > js/bootstrap.min.js')
sh('cp _compass/vendor/bootstrap/images/* images/')
sh('cp _compass/vendor/font-awesome/fonts/* fonts/')
end
# hidden, not much use
task :kss do
sh('find . -name .sass-cache | xargs rm -fR')
end
desc "uploads the website"
task :u => :build do
sh('time rsync -azvhe ssh _site/* lin:www/flon.io/')
end