forked from typelevel/typelevel.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
40 lines (31 loc) · 726 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
# frozen_string_literal: true
require 'date'
require 'rake/clean'
CLOBBER << '_site'
CLOBBER << '_posts'
desc 'Install dependencies'
task :init do
sh 'bundle', 'install'
end
desc 'Update dependencies'
task :update do
sh 'bundle', 'update'
end
desc 'Build posts'
task :posts do
sh './sbt', 'run'
end
desc 'Build the site'
task :build => [:init, :posts] do
sh 'bundle', 'exec', 'jekyll', 'build'
end
desc 'Continually build posts'
task :watch_posts do
sh './sbt', '~ run'
end
desc 'Continually serve the site'
task :serve => [:init] do
sh 'bundle', 'exec', 'jekyll', 'serve', '--watch', '--baseurl', ''
end
desc 'Build posts and serve in parallel (for development)'
multitask :dev => [:serve, :watch_posts]