Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (16 sloc) 546 Bytes
require "bundler/gem_tasks"
DEST_FILE = "lib/diagnosticss/diagnosticss.css"
SOURCE_FILE = "#{DEST_FILE}.scss"
task :default => :compile
desc "Compiles diagnostic .scss to plain css"
task :compile do
exec "bundle exec sass --style compressed #{SOURCE_FILE} #{DEST_FILE}"
end
desc "Watch diagnostic .scss for changes"
task :watch do
exec "bundle exec sass --style compressed --watch #{SOURCE_FILE}:#{DEST_FILE}"
end
desc "Generate documentation"
task :docs do
exec "styledocco -n DiagnostiCSS lib/diagnosticss/diagnosticss.css.scss"
end