Sha256: ff61eed0f8db41f234de3141314a629bee11a5a911c735c7445fdef3369c321c

Contents?: true

Size: 574 Bytes

Versions: 1

Compression:

Stored size: 574 Bytes

Contents

namespace :assets do
  desc "Build all static assets"
  task build: [:"assets:build:stylesheets"]

  namespace :build do
    def path(*segments)
      File.join(*segments)
    end

    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}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redmine-neopoly_style-0.1.0 rakelib/assets.rake