Liking cljdoc? Tell your friends :D

badigeon.compile


classpath->pathsclj

(classpath->paths classpath)

compileclj

(compile namespaces)
(compile namespaces
         {:keys [compile-path compiler-options classpath] :as options})

AOT compile one or several Clojure namespace(s). Dependencies of the compiled namespaces are always AOT compiled too, unless they come under an already AOT compiled form. Namespaces are loaded while beeing compiled so beware of side effects.

  • namespaces: A symbol or a collection of symbols naming one or several Clojure namespaces.
  • compile-path: The path to the directory where .class files are emitted. Default to "target/classes".
  • compiler-options: A map with the same format than clojure.core/compiler-options.
  • classpath: The classpath used while AOT compiling. Defaults to a classpath string computed using the deps.edn file of the current project, without merging the system-level and user-level deps.edn maps.
AOT compile one or several Clojure namespace(s). Dependencies of the compiled namespaces are
always AOT compiled too, unless they come under an already AOT compiled form. Namespaces are
loaded while beeing compiled so beware of side effects.
- namespaces: A symbol or a collection of symbols naming one or several Clojure namespaces.
- compile-path: The path to the directory where .class files are emitted. Default to "target/classes".
- compiler-options: A map with the same format than clojure.core/*compiler-options*.
- classpath: The classpath used while AOT compiling. Defaults to a classpath string computed using the deps.edn file of the current project, without merging the system-level and user-level deps.edn maps.
raw docstring

do-compile->stringclj

(do-compile->string namespaces options)

extract-classes-from-dependenciesclj

(extract-classes-from-dependencies)
(extract-classes-from-dependencies {:keys [out-path deps-map aliases
                                           excluded-libs allow-unstable-deps?]
                                    :as opts})

Extract classes from jar dependencies. By default, classes are extracted to the "target/classes" folder. This function can be used to circumvent the fact that badigeon.compile/compile does not compile dependencies that are already AOT, such as Clojure itself.

  • out-path: The path of the output directory.
  • deps-map: A map with the same format than a deps.edn map. The dependencies with a jar format resolved from this map are searched for ".class" files. Default to the deps.edn map of the project (without merging the system-level and user-level deps.edn maps), with the addition of the maven central and clojars repository.
  • aliases: Alias keywords used while resolving dependencies.
  • excluded-libs: A set of lib symbols to be excluded from the produced bundle. Only the lib is excluded and not its dependencies.
  • allow-unstable-deps?: A boolean. When set to true, the project can depend on local dependencies or a SNAPSHOT version of a dependency. Default to false.
Extract classes from jar dependencies. By default, classes are extracted to the "target/classes" folder. This function can be used to circumvent the fact that badigeon.compile/compile does not compile dependencies that are already AOT, such as Clojure itself.
- out-path: The path of the output directory.
- deps-map: A map with the same format than a deps.edn map. The dependencies with a jar format resolved from this map are searched for ".class" files. Default to the deps.edn map of the project (without merging the system-level and user-level deps.edn maps), with the addition of the maven central and clojars repository.
- aliases: Alias keywords used while resolving dependencies.
- excluded-libs: A set of lib symbols to be excluded from the produced bundle. Only the lib is excluded and not its dependencies.
- allow-unstable-deps?: A boolean. When set to true, the project can depend on local dependencies or a SNAPSHOT version of a dependency. Default to false.
raw docstring

paths->urlsclj

(paths->urls paths)

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

× close