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
raw docstring

add-sources-for-entriesclj

(add-sources-for-entries state entries)

utility function to simplify testing

utility function to simplify testing
raw 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
raw docstring

build-affected-by-macro?clj

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

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
raw docstring

build-state?clj

(build-state? build)

checkclj

(check state)

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
raw docstring

configure-modulesclj

(configure-modules state modules)

deep-mergeclj

(deep-merge a b)

default-build-optionsclj


default-compiler-optionsclj


default-js-optionsclj


enable-source-mapsclj

(enable-source-maps state)

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
raw docstring

find-resources-using-macrosclj

(find-resources-using-macros state macros)

initclj

(init)

merge-build-optionsclj

(merge-build-options state opts)

merge-compiler-optionsclj

(merge-compiler-options state opts)

optimizeclj

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

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.
raw docstring

reset-namespacesclj

(reset-namespaces state provides)

reset-resourcesclj

(reset-resources state source-ids)

reset-resources-using-macrosclj

(reset-resources-using-macros state macros)

resolve-entriesclj

(resolve-entries state entries)

with-babelclj

(with-babel state babel)

with-build-optionsclj

(with-build-options state opts)

with-cache-dirclj

(with-cache-dir state cache-dir)

with-classpathclj

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

with-compiler-optionsclj

(with-compiler-options state opts)

with-executorclj

(with-executor state executor)

with-js-optionsclj

(with-js-options state opts)

with-loggerclj

(with-logger state logger)

with-npmclj

(with-npm state npm)

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

× close