Sha256: 85a6e4708955a34469896ea47919f656975c6232755c9cf1d45f6e7f8beec0f4

Contents?: true

Size: 602 Bytes

Versions: 1

Compression:

Stored size: 602 Bytes

Contents

require 'watchful/configuration'

module Watchful
	
	class DefaultConfiguration < Configuration
		
		description "Default Configuration"
		
		# LESS CSS, if installed
		
		begin
			gem "less"
			action	:name => 'LESS CSS',
					:in => '.less',
					:out => '.css',
					:command => 'lessc %s %s',
					:dependencies => ['less']
		rescue GEM::LoadError
			# pass
		end
		
		# SASS, if installed
		
		if Action.have_command? 'sass'
			action	:name => 'SASS',
					:in => '.sass',
					:out => '.min.css',
					:command => 'sass --style compressed %s %s',
					:dependencies => 'sass'
		end
		
	end
		
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
watchful-0.0.0.pre1 lib/watchful/defaultconfiguration.rb