Sha256: 736d84cbb4d26a31dd620715fcea415799d104f51ddc54a2700a77d88413624f

Contents?: true

Size: 439 Bytes

Versions: 7

Compression:

Stored size: 439 Bytes

Contents

namespace :coffee do
  desc 'Compile the CoffeeScript library'
  task :compile do
    ctx = Sprockets::Environment.new(File.expand_path("../../..", __FILE__))
    Tilt::CoffeeScriptTemplate.default_bare=true 
    ctx.append_path "app/assets/javascripts"
    api = ctx.find_asset('hqmf_util')
    
    Dir.mkdir('tmp') unless Dir.exists?( 'tmp')
    
    File.open('tmp/hqmf.js', 'w+') do |js_file|
      js_file.write api
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hqmf2js-1.4.0 lib/tasks/coffee.rake
hqmf2js-1.3.0 lib/tasks/coffee.rake
hqmf2js-1.2.1 lib/tasks/coffee.rake
hqmf2js-1.2.0 lib/tasks/coffee.rake
hqmf2js-1.1.0 lib/tasks/coffee.rake
hqmf2js-1.0.1 lib/tasks/coffee.rake
hqmf2js-1.0.0 lib/tasks/coffee.rake