-
Notifications
You must be signed in to change notification settings - Fork 4
/
Guardfile
29 lines (24 loc) · 974 Bytes
/
Guardfile
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
# May no longer be necessary with the new watch parameters built into Nanoc
# Sets what files to watch so as you make changes to content, stylesheets, layouts, etc
# the browser will automatically refresh.
# Requires the 'guard' & 'guard-livereload' gems found in the 'Gemfile'
# options (these are the defaults)
# :api_version => '1.6'
# :host => '0.0.0.0'
# :port => '35729'
# :apply_js_live => true
# :apply_css_live => true
# :grace_period => 0
# you can set the options with something like
# { }"guard 'livereload', :apply_js_live => 'false', :apply_css_live => 'false' do"
# guard 'livereload' do
# watch(%r{content/.+\.(erb|haml|md|markdown|html|yaml|txt|sass|scss|css)})
# watch(%r{layouts/.+\.(erb|haml|md|markdown|html|yaml)})
# end
# playing around with the guard gem for nanoc. personally I prefer the guard livereload gem
# guard 'nanoc' do
# watch('^config.yaml')
# watch('^Rules')
# watch('^content/*')
# watch('^layouts/*')
# end