-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGuardfile
More file actions
21 lines (18 loc) · 926 Bytes
/
Guardfile
File metadata and controls
21 lines (18 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Ruby guard file (need ruby >2.2 and bundler installed: 'gem install bundler')
# - to make sure all the gems are installed, run 'bundle install' once in terminal
# - to have a test app available for the guard, use tbl_setup_peer_evaluation to set one up
# - then use the Makefile target 'make gui_dev' to start the GUI in development mode
# For browser livereload to work, need the browser extension: http://livereload.com/extensions/#installing-sections
# If the delay is too short for relaunching the app, increase the grace_period
folder = 'peer_evaluation'
port = 5000
guard 'process', name: 'Shiny', command: ['R', '-e', "devtools::load_all('.'); tbltools::tbl_test_peer_evaluation('#{folder}', port = #{port})"] do
watch(%r{^NAMESPACE$})
watch(%r{R/.+\.R$})
watch(%r{#{folder}/.+\.R$})
end
guard 'livereload', grace_period: 2 do
watch(%r{^NAMESPACE$})
watch(%r{R/.+\.R$})
watch(%r{#{folder}/.+\.R$})
end