rakelib/assets.rake in redmine-neopoly_style-0.1.0 vs rakelib/assets.rake in redmine-neopoly_style-0.3.0
- old
+ new
@@ -5,16 +5,21 @@
namespace :build do
def path(*segments)
File.join(*segments)
end
+ CSS_FILES = %w(neopoly_style neopoly_style_responsive)
+
desc "Convert SASS stylesheets to CSS"
task :stylesheets do
require "sass"
- input = path("lib", "assets", "stylesheets", "neopoly_style.sass")
- output = path("assets", "stylesheets", "neopoly_style.css")
- engine = Sass::Engine.for_file(input, syntax: :sass, style: :compact)
- File.write(output, engine.render)
- puts "Build: #{output}"
+
+ CSS_FILES.each do |name|
+ input = path("lib", "assets", "stylesheets", "#{name}.sass")
+ output = path("assets", "stylesheets", "#{name}.css")
+ engine = Sass::Engine.for_file(input, syntax: :sass, style: :compact)
+ File.write(output, engine.render)
+ puts "Build: #{output}"
+ end
end
end
end