(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
(add-sources-for-entries state entries)
utility function to simplify testing
utility function to simplify testing
(analyze-modules state)
takes module config and resolves all sources needed to compile
takes module config and resolves all sources needed to compile
(build-affected-by-macro? state macro-ns)
(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
(build-state? build)
(check state)
(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
(configure-modules state modules)
(deep-merge a b)
(enable-source-maps state)
(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
(find-resources-using-macros state macros)
(init)
(merge-build-options state opts)
(merge-compiler-options state opts)
(optimize {:keys [classpath] :as state})
(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.
(reset-namespaces state provides)
(reset-resources state source-ids)
(reset-resources-using-macros state macros)
(resolve-entries state entries)
(with-babel state babel)
(with-build-options state opts)
(with-cache-dir state cache-dir)
(with-classpath state)
(with-classpath state cp)
(with-compiler-options state opts)
(with-executor state executor)
(with-js-options state opts)
(with-logger state logger)
(with-npm state npm)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close