Files
squib/samples/rake-guard/Guardfile
T
Andy Meneely 6807e0bce0 docs: begin writeup of guard
While writing this I realized that this really should be part of part_3_workflows.rst, so it'll eventually make it into there. But it's recorded in its unpolished form for now.
2016-11-16 15:04:42 -05:00

19 lines
774 B
Ruby

group :characters do
guard 'rake', task: :characters do # when triggered, do "rake characters"
watch %r{src/characters.rb} # a regular expression that matches our file
watch %r{img/.*} # watch every file inside of our img directory
watch %r{.*\.xlsx$} # Any excel file, anywhere
watch %r{.*\.yml} # Any yml file, anywhere (config or layout)
end
end
group :skills do
guard 'rake', task: :skills do # when triggered, do "rake skills"
watch %r{src/skills.rb} # a regular expression that matches our file
watch %r{img/.*} # watch every file inside of our img directory
watch %r{.*\.xlsx$} # Any excel file, anywhere
watch %r{.*\.yml} # Any yml file, anywhere (config or layout)
end
end