Permalink
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (28 sloc) 612 Bytes
#!/usr/bin/env rake
require "bundler/gem_tasks"
THEMES = %w(
amelia
cerulean
cosmo
cyborg
journal
readable
simplex
slate
spacelab
spruce
superhero
united
).freeze
LESS_FILES = FileList["bootswatch/{#{THEMES.join(',')}}/*.less"]
SCSS_FILES = LESS_FILES.pathmap(
'vendor/assets/stylesheets/bootswatch/%-1d/_%n.scss'
)
SCSS_FILES.zip(LESS_FILES).each do |target, source|
directory File.dirname(target)
file target => [File.dirname(target), source] do
sh "./converter #{source} #{target}"
end
end
desc 'Imprecisely convert LESS files to SCSS files'
task convert: SCSS_FILES