generic helpers for the build data structure
generic helpers for the build data structure
(add-provide state resource-id provide-sym)
(add-provides {:keys [sources] :as state} {:keys [resource-id provides]})
(add-source state {:keys [resource-id resource-name] :as rc})
(add-string-lookup {:keys [sources] :as state} require-from-ns require sym)
(build-state? state)
(cache-file {:keys [cache-dir] :as state} name & names)
(deps->syms {:keys [ns-aliases] :as state} {:keys [resource-id deps] :as rc})
(get-build-sources {:keys [build-sources] :as state})
(get-deps-for-id state result rc-id)
returns all deps as a set for a given id, these are unordered only a helper for caching
returns all deps as a set for a given id, these are unordered only a helper for caching
(get-output! state {:keys [resource-id] :as rc})
(get-reader-features state)
(get-source-by-id state id)
(get-source-by-name state name)
(get-source-by-provide state provide)
(get-source-code state
{:keys [resource-id type source-fn source file url] :as rc})
this loads the source code for each source or uses the current if already loaded everything should only ever access :source from the compiler resources and never access the filesystem again (since it may have changed)
the loading is delayed until here because of the :foreign which may have a minified file that should be used for release builds
this loads the source code for each source or uses the current if already loaded everything should only ever access :source from the compiler resources and never access the filesystem again (since it may have changed) the loading is delayed until here because of the :foreign which may have a minified file that should be used for release builds
(get-source-id-by-provide state provide)
(get-string-alias state require-from-ns require)
(init state)
(js-names-accessed-from-cljs {:keys [build-sources] :as state})
(js-names-accessed-from-cljs {:keys [js-entries] :as state} build-sources)
(maybe-add-source {:keys [sources] :as state} {:keys [resource-id] :as rc})
add given resource to the :sources and lookup indexes
add given resource to the :sources and lookup indexes
(output-file state name & names)
(overwrite-source state {:keys [ns resource-id] :as rc})
adds a source to the build state, if the ns was provided previously the other is removed
adds a source to the build state, if the ns was provided previously the other is removed
(remove-provides state {:keys [provides] :as rc})
(remove-source-by-id state resource-id)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close