Add Guard Livereload
This commit is contained in:
parent
9228d290a9
commit
6c20e5a1da
18
Guardfile
Normal file
18
Guardfile
Normal file
@ -0,0 +1,18 @@
|
||||
# A sample Guardfile
|
||||
# More info at https://github.com/guard/guard#readme
|
||||
|
||||
group :development do
|
||||
gem 'guard-livereload', require: false
|
||||
end
|
||||
|
||||
# Add files and commands to this file, like the example:
|
||||
# watch(%r{file/path}) { `command(s)` }
|
||||
#
|
||||
guard :shell do
|
||||
watch(%r{htdocs/.+\.(php)}) { 'phpdoc -d ./htdocs/lib -t ./docs/' }
|
||||
end
|
||||
|
||||
# LiveReload
|
||||
guard 'livereload' do
|
||||
watch(%r{htdocs/.+\.(php|css|js|html)})
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user