-
Notifications
You must be signed in to change notification settings - Fork 4
/
Guardfile
40 lines (36 loc) · 1.14 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
28
29
30
31
32
33
34
35
36
37
38
39
40
require 'handlebars/source'
require 'ember/source'
require 'ember/data/source'
require 'sprockets'
require 'haml'
require 'handlebars_assets'
require 'hamlbars/ext'
require 'ember-auth/source'
# Load hamlbars helpers
Haml::Compiler.send(:include, Hamlbars::Ext::Compiler)
# Handlebars assets will be used with Ember.js
HandlebarsAssets::Config.ember = true
# Manually register .hamlbars extension
Sprockets.register_engine('.hamlbars', HandlebarsAssets::TiltHandlebars)
guard 'haml', :output => 'public' do
watch(/^.+(\.html\.haml)/)
end
guard 'sprockets', {
:destination => 'public',
:minify => true,
:asset_paths => [
'javascripts',
# Zurb could definitely use some ruby love
Pathname.new(Gem::Specification.find_by_name('zurb-foundation').gem_dir).join('js'),
::Ember::Source.bundled_path_for(''),
::Ember::Data::Source.bundled_path_for(''),
File.dirname(Handlebars::Source.bundled_path),
File.dirname(EmberAuth::Source.bundled_path)
],
:root_file => 'public/application.js'
} do
watch(/^javascripts\/(.*)\.(js|coffee|hamlbars)/)
end
guard 'compass' do
watch(/^sass\/(.*)\.s[ac]ss/)
end