Sha256: 4cb0295ec207985709cb6272944b20328f09965b36f3100fd9d270405fb9de00

Contents?: true

Size: 284 Bytes

Versions: 6

Compression:

Stored size: 284 Bytes

Contents

module Rake
  module DSL

    def coffee(input, options)
      File.join(options[:output], File.basename(input)).ext('js').tap do |js_file|
        file js_file => input do
          sh "coffee --compile --output #{options[:output]} #{input}"
        end
      end
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ggake-0.9.0 lib/ggake/coffee.rb
ggake-0.8.0 lib/ggake/coffee.rb
ggake-0.7.0 lib/ggake/coffee.rb
ggake-0.6.0 lib/ggake/coffee.rb
ggake-0.5.0 lib/ggake/coffee.rb
ggake-0.4.1 lib/ggake/coffee.rb