21 lines
330 B
Ruby
21 lines
330 B
Ruby
require 'coffee_script'
|
|
require 'digest/sha1'
|
|
require 'fileutils'
|
|
|
|
module Jasmine
|
|
module Headless
|
|
class CoffeeScriptCache < CacheableAction
|
|
class << self
|
|
def cache_type
|
|
"coffee_script"
|
|
end
|
|
end
|
|
|
|
def action
|
|
CoffeeScript.compile(File.read(file))
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|