Liking cljdoc? Tell your friends :D

shadow.cljs.devtools.server.worker


compileclj

(compile {:keys [proc-control] :as proc})

triggers an async compilation, use watch to receive notification about worker state

triggers an async compilation, use watch to receive notification about worker state
sourceraw docstring

compile!clj

(compile! {:keys [proc-control] :as proc})

triggers an async compilation and waits for the compilation result (blocking)

triggers an async compilation and waits for the compilation result (blocking)
sourceraw docstring

load-fileclj

(load-file worker {:keys [source file-path] :as file-info})
source

repl-compileclj

(repl-compile worker input)
source

repl-evalclj

(repl-eval worker session-id runtime-id input)
source

repl-runtime-connectclj

(repl-runtime-connect {:keys [proc-stop proc-control] :as proc}
                      runtime-id
                      runtime-out
                      runtime-info)

called by processes that are able to eval repl commands and report their result

runtime-out should be a channel that receives things generated by shadow.cljs.repl (:repl/invoke, :repl/require, etc)

returns a channel the results of eval should be put in when no more results are coming this channel should be closed

called by processes that are able to eval repl commands and report their result

runtime-out should be a channel that receives things generated by shadow.cljs.repl
(:repl/invoke, :repl/require, etc)

returns a channel the results of eval should be put in
when no more results are coming this channel should be closed
sourceraw docstring

startclj

(start config
       system-bus
       executor
       cache-root
       http
       classpath
       npm
       babel
       {:keys [build-id] :as build-config})
source

start-autobuildclj

(start-autobuild {:keys [proc-control] :as proc})

automatically compile on file changes

automatically compile on file changes
sourceraw docstring

stopclj

(stop {:keys [fs-watch] :as proc})
source

stop-autobuildclj

(stop-autobuild {:keys [proc-control] :as proc})
source

sync!clj

(sync! {:keys [proc-control] :as proc})

ensures that all proc-control commands issued have completed

ensures that all proc-control commands issued have completed
sourceraw docstring

watchclj

(watch proc log-chan)
(watch {:keys [output-mult] :as proc} log-chan close?)

watch all output produced by the worker

watch all output produced by the worker
sourceraw docstring

worker-requestclj

(worker-request {:keys [proc-control state-ref] :as worker} request)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close