Public lifecycle, reload operation, and inspectable state for cljs-reload.
Public lifecycle, reload operation, and inspectable state for cljs-reload.
The reload primitive. Dynamic only to make compile/eval recovery testable.
The reload primitive. Dynamic only to make compile/eval recovery testable.
(init! {:keys [source-paths] :or {source-paths ["src"]}})Scans source paths without attaching to a REPL. Useful for graph inspection.
Scans source paths without attaching to a REPL. Useful for graph inspection.
(reload!)Rescans, plans, recompiles, and evaluates changed project namespaces and all affected project dependents. Errors are recorded and returned, not thrown out of the watcher thread.
Rescans, plans, recompiles, and evaluates changed project namespaces and all affected project dependents. Errors are recorded and returned, not thrown out of the watcher thread.
(start! options)(start! options {:keys [repl-env compiler compiler-options] :as context})Attaches cljs-reload to the current cljs.repl dynamic environment.
The two-arity form is the practical lifecycle seam used by
cljs-reload.repl; context contains the already-created REPL environment,
compiler atom, compiler/REPL options, and output streams.
Attaches cljs-reload to the current cljs.repl dynamic environment. The two-arity form is the practical lifecycle seam used by `cljs-reload.repl`; `context` contains the already-created REPL environment, compiler atom, compiler/REPL options, and output streams.
(state)Returns the complete reload state as ordinary Clojure data.
Returns the complete reload state as ordinary Clojure data.
(stop!)Stops the watcher. The last source graph and reload result remain inspectable.
Stops the watcher. The last source graph and reload result remain inspectable.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |