forked from maxim/bootswatch-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
35 lines (29 loc) · 621 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env rake
require "bundler/gem_tasks"
THEMES = %w(
amelia
cerulean
cosmo
cyborg
flatly
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