Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (35 sloc) 1.3 kB
group :codo do
# CoffeeScript for the codo library
guard :coffeescript, :input => 'src', :output => 'lib'
# Run Jasmine specs
guard :shell do
jasmine_node = File.expand_path '../node_modules/jasmine-node/bin/jasmine-node', __FILE__
watch(%r{src|spec}) { `#{jasmine_node} --coffee --color spec/parser_spec.coffee` }
end
# Generate codo doc
guard :shell do
watch(%r{src|theme}) { `./bin/codo` }
end
end
group :theme do
# CoffeeScript for the default template
guard :coffeescript, :input => 'theme/default/src/coffee', :output => 'theme/default/lib/scripts'
# Compile the Compass style sheets
guard :compass, :configuration_file => 'config/compass.rb' do
watch(%r{^theme\/default\/src\/styles\/(.*)\.scss})
end
# Pack assets with Jammit for NPM distribution
guard :jammit, :hide_success => true, :public_root => 'theme/default' do
watch(/^theme\/default\/lib\/scripts\/(.*)\.js$/)
watch(/^theme\/default\/lib\/styles\/(.*)\.css$/)
end
# Pack assets with Jammit for LiveReload
guard :jammit, :public_root => 'doc' do
watch(/^theme\/default\/lib\/scripts\/(.*)\.js$/)
watch(/^theme\/default\/lib\/styles\/(.*)\.css$/)
end
# Load changes with LiveReload into browser
guard :livereload do
watch(%r{^doc\/(.+)$})
end
end
Jump to Line
Something went wrong with that request. Please try again.