     (:require [cljs.repl]
               [cljs.repl.nashorn]))
 
-  (cljs.repl/repl (cljs.repl.nashorn/repl-env) :output-dir "resources/public/compiled"
-                  :cache-analysis true))
+  (cljs.repl/repl (cljs.repl.nashorn/repl-env)
+    :output-dir "resources/public/compiled"
+    :cache-analysis true)
+  )
 
 ;;
 ;; Invoke it with:

  (eval-str engine (format "nashorn_load(\"%s\");" file)))

;; Create a minimal build of Clojurescript from the core library.
;;
;; Copied rom clj.cljs.repl.node.
(defn bootstrap-repl [engine output-dir opts]
  (env/ensure
   (let [deps-file ".nashorn_repl_deps.js"
         core (io/resource "cljs/core.cljs")
         core-js (closure/compile core
                                  (assoc opts :output-file (closure/src-file->target-file core)))
         deps (closure/add-dependencies opts core-js)]
     ;; output unoptimized code and the deps file
     ;; for all compiled namespaces
     (apply closure/output-unoptimized
            (assoc opts :output-to (.getPath (io/file output-dir deps-file)))
            deps)
     ;; load the deps file so we can goog.require cljs.core etc.
     (load-js-file engine deps-file))))

(defn load-ns [engine ns]
  (eval-str engine (format "goog.require(\"%s\");" (comp/munge (first ns)))))

(defn- stacktrace  [^Exception e]
  (apply str (interpose "\n" (map #(str " " (.toString %)) (.getStackTrace e)))))

(def repl-filename "<cljs repl>")


   :output-to   load this file initially into Nashorn, relative to output-dir.
                Use a minimal bootstrapped cljs.core environment if not specified."
  [& {debug :debug :as opts}]
  (let [engine (create-engine)
        compiler-env (env/default-compiler-env)]
    (merge (NashornEnv. engine debug)
      {:cljs.env/compiler compiler-env}  ; required by cider middleware ?
      opts)))