Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (33 sloc) 0.656 kb
#!/usr/bin/env rake
require "bundler/gem_tasks"
THEMES = %w(
amelia
cerulean
cosmo
cyborg
darkly
flatly
journal
lumen
paper
readable
sandstone
simplex
slate
spacelab
superhero
united
yeti
).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
Jump to Line
Something went wrong with that request. Please try again.