(analyze state compile-state form)
(analyze state {:keys [ns resource-name] :as compile-state} form repl-context?)
(compile-all {:keys [build-sources] :as state})
(compile-all {:keys [build-sources last-progress-ref] :as state} source-ids)
compile a list of sources by id, requires that the ids are in dependency order requires that ALL of the dependencies NOT listed are already compiled eg. you cannot just compile clojure.string as it requires other files to be compiled first
compile a list of sources by id, requires that the ids are in dependency order requires that ALL of the dependencies NOT listed are already compiled eg. you cannot just compile clojure.string as it requires other files to be compiled first
(compile-cljs-sources {:keys [executor] :as state} sources non-cljs-provides)
(default-compile-cljs {:keys [last-progress-ref] :as state}
{:keys [ns macros-ns] :as compile-state}
form)
(do-compile-cljs-resource
{:keys [compiler-options] :as state}
{:keys [resource-id resource-name url file output-name] :as rc}
source)
(do-compile-cljs-string {:keys [resource-name cljc reader-features] :as init}
reduce-fn
cljs-source)
(ensure-cache-invalidation-on-resolve-changes state resource-id)
populates :cache-key of the resource with the resolved symbols of its deps to ensure recompilation when their names change
populates :cache-key of the resource with the resolved symbols of its deps to ensure recompilation when their names change
(generate-output-for-source state {:keys [resource-id type] :as src})
(load-cached-cljs-resource {:keys [build-options] :as state}
{:keys [ns output-name resource-id resource-name]
:as rc})
(make-cache-key-map state rc)
produces a map of {resource-id cache-key} for caching to identify whether a cache is safe to use (if any cache-keys do not match if is safer to recompile)
produces a map of {resource-id cache-key} for caching to identify whether a cache is safe to use (if any cache-keys do not match if is safer to recompile)
(maybe-compile-cljs {:keys [build-options previously-compiled] :as state}
{:keys [resource-id resource-name from-jar file url]
:as rc})
take current state and cljs resource to compile make sure you are in with-compiler-env
take current state and cljs resource to compile make sure you are in with-compiler-env
(par-compile-cljs-sources {:keys [executor] :as state}
sources
non-cljs-provides)
compile files in parallel, files MUST be in dependency order and ALL dependencies must be present this cannot do a partial incremental compile
compile files in parallel, files MUST be in dependency order and ALL dependencies must be present this cannot do a partial incremental compile
(par-compile-one {:keys [last-progress-ref] :as state}
ready-ref
errors-ref
{:keys [resource-id type requires provides] :as src})
(seq-compile-cljs-sources state sources)
compiles with just the main thread, can do partial compiles assuming deps are compiled
compiles with just the main thread, can do partial compiles assuming deps are compiled
(with-warnings build-env & body)
given a body that produces a compilation result, collect all warnings and assoc into :warnings
given a body that produces a compilation result, collect all warnings and assoc into :warnings
(write-cached-cljs-resource state
{:keys [ns requires resource-id resource-name]
:as rc}
{:keys [warnings] :as output})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close