Liking cljdoc? Tell your friends :D

shadow.build.data

generic helpers for the build data structure

generic helpers for the build data structure
raw docstring

add-provideclj

(add-provide state resource-id provide-sym)
source

add-providesclj

(add-provides {:keys [sources] :as state} {:keys [resource-id provides]})
source

add-sourceclj

(add-source state {:keys [resource-id resource-name] :as rc})
source

add-string-lookupclj

(add-string-lookup {:keys [sources] :as state} require-from-ns require sym)
source

build-state?clj

(build-state? state)
source

cache-fileclj

(cache-file {:keys [cache-dir] :as state} name & names)
source

deps->symsclj

(deps->syms {:keys [ns-aliases] :as state} {:keys [resource-id deps] :as rc})
source

empty-dataclj

source

get-build-sourcesclj

(get-build-sources {:keys [build-sources] :as state})
source

get-deps-for-idclj

(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
sourceraw docstring

get-output!clj

(get-output! state {:keys [resource-id] :as rc})
source

get-reader-featuresclj

(get-reader-features state)
source

get-source-by-idclj

(get-source-by-id state id)
source

get-source-by-nameclj

(get-source-by-name state name)
source

get-source-by-provideclj

(get-source-by-provide state provide)
source

get-source-codeclj

(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
sourceraw docstring

get-source-id-by-provideclj

(get-source-id-by-provide state provide)
source

get-string-aliasclj

(get-string-alias state require-from-ns require)
source

initclj

(init state)
source

js-names-accessed-from-cljsclj

(js-names-accessed-from-cljs {:keys [build-sources] :as state})
(js-names-accessed-from-cljs {:keys [js-entries] :as state} build-sources)
source

maybe-add-sourceclj

(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
sourceraw docstring

output-fileclj

(output-file state name & names)
source

overwrite-sourceclj

(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
sourceraw docstring

remove-providesclj

(remove-provides state {:keys [provides] :as rc})
source

remove-source-by-idclj

(remove-source-by-id state resource-id)
source

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

× close