Sha256: 0d1f71d34b4105a5e57f7fbac3173dee030eb6388bb21c7a15c554a31ed590aa

Contents?: true

Size: 775 Bytes

Versions: 4

Compression:

Stored size: 775 Bytes

Contents

module Slinky
  module ClojureScriptCompiler
    Compilers.register_compiler self,
                                :inputs => ["cljs"],
                                :outputs => ["js"],
                                :dependencies => [["clementine", "~> 0.0.3"]],
                                :requires => ["clementine"]
    def ClojureScriptCompiler::compile s, file
      # Clementine.options[:pretty_print] = true
      # Clementine.options[:optimizations] = :none
      @engine ||= Clementine::ClojureScriptEngine.new(file,
                                          :pretty_print => true,
                                          :optimizations => :none,
                                          :output_dir => Dir.tmpdir)
      @engine.compile
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slinky-0.8.3 lib/slinky/compilers/clojurescript-compiler.rb
slinky-0.8.2 lib/slinky/compilers/clojurescript-compiler.rb
slinky-0.8.1 lib/slinky/compilers/clojurescript-compiler.rb
slinky-0.8.0 lib/slinky/compilers/clojurescript-compiler.rb