(collect-aliases workspace-config packages)Collect a set of 'active' aliases from the workspace.
This function works by:
:package-aliases config from the provided
workspace-config.:aliases key on the
workspace-config.:kmono/packages alias which contains the base package
classpaths.This function is designed to be used to collect the relevant set of aliases to
provide to the clojure flags -A, -M, -T, -X.
Collect a set of 'active' aliases from the workspace. This function works by: 1) Discovering all available package aliases in the workspace and filtering them based on the `:package-aliases` config from the provided `workspace-config`. 2) Merging this set with the aliases defined in the `:aliases` key on the `workspace-config`. 3) Adding the special `:kmono/packages` alias which contains the base package classpaths. This function is designed to be used to collect the relevant set of aliases to provide to the clojure flags `-A`, `-M`, `-T`, `-X`.
(generate-classpath-command project-root workspace-config packages)Generate an augmented clojure -Spath command string.
Generate an augmented `clojure -Spath` command string.
(resolve-classpath project-root workspace-config packages)Resolve a classpath string for a workspace.
This works by shelling out to clojure -Spath with additional flags generated
from analysing the workspace.
See generate-classpath-command for the command construction logic.
Resolve a classpath string for a workspace. This works by shelling out to `clojure -Spath` with additional flags generated from analysing the workspace. See [[generate-classpath-command]] for the command construction logic.
(serialize-aliases aliases)Serialize a given sequence of aliases to a colon delimited string.
Serialize a given sequence of `aliases` to a colon delimited string.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |