Sha256: b04b73e8a2e6cc9667353e2e31a290fd820d335d0244f813ab405610cc9f5b69
Contents?: true
Size: 693 Bytes
Versions: 2
Compression:
Stored size: 693 Bytes
Contents
# encoding: utf-8 require 'coffee_script' require 'easy_html_generator/generator/compile/base' # this generator coffee sass files from src folder and copies them # to the dist folder class EasyHtmlGenerator::Generator::Compile::Coffee < EasyHtmlGenerator::Generator::Compile::Base def do_input!(input, input_file = 'inline', *_args) result = CoffeeScript.compile input return result unless @config.minimize EasyHtmlGenerator::Generator::Minimize::Js.compress result rescue StandardError => e raise e, "#{e.message} in #{input_file} ", e.backtrace end def input_to_output_file(input_file, config) super(input_file, config).gsub('.js.coffee', '.js') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
easy_html_generator-1.0.6 | lib/easy_html_generator/generator/compile/coffee.rb |
easy_html_generator-1.0.5 | lib/easy_html_generator/generator/compile/coffee.rb |