Liking cljdoc? Tell your friends :D

shadow.build.api


add-closure-configuratorclj

(add-closure-configurator state callback)

adds a closure configurator 2-arity function that will be called before the compiler is invoked signature of the callback is (fn [compiler compiler-options])

Compiler and CompilerOptions are mutable objects, the return value of the callback is ignored

CLJS default configuration is done first, all configurators are applied later and may override any options.

See: com.google.javascript.jscomp.Compiler com.google.javascript.jscomp.CompilerOptions

adds a closure configurator 2-arity function that will be called before the compiler is invoked
signature of the callback is (fn [compiler compiler-options])

Compiler and CompilerOptions are mutable objects, the return value of the callback is ignored

CLJS default configuration is done first, all configurators are applied later and may override
any options.

See:
com.google.javascript.jscomp.Compiler
com.google.javascript.jscomp.CompilerOptions
sourceraw docstring

add-sources-for-entriesclj

(add-sources-for-entries state entries)

utility function to simplify testing

utility function to simplify testing
sourceraw docstring

analyze-modulesclj

(analyze-modules state)

takes module config and resolves all sources needed to compile

takes module config and resolves all sources needed to compile
sourceraw docstring

build-affected-by-macro?clj

(build-affected-by-macro? state macro-ns)
source

build-affected-by-macros?clj

(build-affected-by-macros? state macros)

checks whether any sources currently used by the build use any of the given macro namespaces

checks whether any sources currently used by the build use any of the given macro namespaces
sourceraw docstring

build-state?clj

(build-state? build)
source

checkclj

(check state)
source

compile-sourcesclj

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

compiles a list of sources in dependency order compiles :build-sources if no list is given, use prepare-modules to make :build-sources

compiles a list of sources in dependency order
compiles :build-sources if no list is given, use prepare-modules to make :build-sources
sourceraw docstring

configure-modulesclj

(configure-modules state modules)
source

deep-mergeclj

(deep-merge a b)
source

default-build-optionsclj

source

default-compiler-optionsclj

source

default-js-optionsclj

source

enable-source-mapsclj

(enable-source-maps state)
source

find-resources-affected-byclj

(find-resources-affected-by state source-ids)

returns the set all resources and the immediate dependents of those sources intended for cache invalidation if one or more resources are changed a resource may change a function signature and we need to invalidate all namespaces that may be using that function to immediately get warnings

returns the set all resources and the immediate dependents of those sources
intended for cache invalidation if one or more resources are changed
a resource may change a function signature and we need to invalidate all namespaces
that may be using that function to immediately get warnings
sourceraw docstring

find-resources-using-macrosclj

(find-resources-using-macros state macros)
source

initclj

(init)
source

merge-build-optionsclj

(merge-build-options state opts)
source

merge-compiler-optionsclj

(merge-compiler-options state opts)
source

optimizeclj

(optimize {:keys [classpath] :as state})
source

reset-always-compile-namespacesclj

(reset-always-compile-namespaces state)

removes all namespaces marked with (ns ^:dev/always some.thing ...) from the build state so they are recompiled.

removes all namespaces marked with (ns ^:dev/always some.thing ...) from the build state
so they are recompiled.
sourceraw docstring

reset-namespacesclj

(reset-namespaces state provides)
source

reset-resourcesclj

(reset-resources state source-ids)
source

reset-resources-using-macrosclj

(reset-resources-using-macros state macros)
source

resolve-entriesclj

(resolve-entries state entries)
source

with-babelclj

(with-babel state babel)
source

with-build-optionsclj

(with-build-options state opts)
source

with-cache-dirclj

(with-cache-dir state cache-dir)
source

with-classpathclj

(with-classpath state)
(with-classpath state cp)
source

with-compiler-optionsclj

(with-compiler-options state opts)
source

with-executorclj

(with-executor state executor)
source

with-js-optionsclj

(with-js-options state opts)
source

with-loggerclj

(with-logger state logger)
source

with-npmclj

(with-npm state npm)
source

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

× close