forked from IvanWoo/subjpop.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
24 lines (20 loc) · 667 Bytes
/
Rakefile
File metadata and controls
24 lines (20 loc) · 667 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# frozen_string_literal: true
# https://stackoverflow.com/questions/3668607/how-to-excute-commands-within-rake-tasks
desc 'Prepare the data'
task :prep do
sh 'bundle exec ruby scripts/update_stream_yaml.rb'
sh 'bundle exec ruby scripts/update_curated_websites.rb'
end
desc 'Start the dev server'
task dev: [:prep] do
sh 'bundle exec jekyll serve --livereload --host localhost --open-url'
end
desc 'Build the site'
task :build do
sh 'bundle exec jekyll build'
end
# https://www.danielsieger.com/blog/2021/03/28/check-broken-links-jekyll.html
desc 'Test the broken links'
task test: [:build] do
sh 'bundle exec htmlproofer --assume_extension ./_site'
end