-
Notifications
You must be signed in to change notification settings - Fork 1
/
Guardfile
27 lines (23 loc) · 1.02 KB
/
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
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
# Guard::Compass
#
# You don't need to configure watchers for guard 'compass' declaration as they generated
# from your Compass configuration file. You might need to define the Compass working directory
# and point to the configuration file depending of your project structure.
#
# Available options:
#
# * working_directory: Define the Compass working directory, relative to the Guardfile directory
# * configuration_file: Path to the Compass configuration file, relative to :project_path
#
# Like usual, the Compass configuration path are relative to the :project_path
# guard 'compass', project_path: 'not_current_dir', configuration_file: 'path/to/my/compass_config.rb'
guard :compass
# And use rake to build changes to haml and coffee files
guard :shell do
watch(%r{static/.+\.coffee$}) { `rake build:coffee` }
watch(%r{static/.+\.haml$}) { `rake build:haml` }
watch(%r{static/libs.+}) { `rake build:libs` }
end
notification :emacs, success: "PaleGreen"