-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGuardfile
More file actions
25 lines (18 loc) · 722 Bytes
/
Guardfile
File metadata and controls
25 lines (18 loc) · 722 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
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
require 'tapp'
require 'pry'
guard :phpunit2, tests_path: 'test/unit', all_on_start: false, notification: false do
# Watch tests files
watch(%r{.+/(.+Test).php$}) { |m| "#{m[1]} #{m[0]}" }
# Watch library files and run their tests
watch(%r{.+/(.+).php$}) { |m| "#{m[1]}Test test/unit/#{m[0].gsub(%r{\.php}, "Test.php")}" }
end
# Guard::Compass
guard :compass, configuration_file: 'config/compass.rb' do
watch(%r{^app/assets\/sass\/(.*)\.sass})
end
# Guard::CoffeeScript
guard :coffeescript, bare: true, input: 'app/assets/coffeescripts', output: 'app/assets/javascripts' do
watch(%r{^app/assets/coffeescripts/front/(.*).js})
end