cljs.repl.browser/repl-env*
function | since v0.0-3030 | Edit |
(repl-env* {:keys [output-dir host port], :or {host "localhost", port 9000}, :as opts})
(defn repl-env*
[{:keys [output-dir host port] :or {host "localhost" port 9000} :as opts}]
(merge (BrowserEnv.)
{:host host
:port port
:launch-browser true
:working-dir (->> [".repl" (util/clojurescript-version)]
(remove empty?) (string/join "-"))
:static-dir (cond-> ["." "out/"] output-dir (conj output-dir))
:preloaded-libs []
:src "src/"
:browser-state (atom {:return-value-fn nil
:client-js nil})
:ordering (agent {:expecting nil :fns {}})
:es (Executors/newFixedThreadPool 16)
:server-state
(atom
{:socket nil
:listeners 0})}
opts))