(filter-package-aliases globs packages)Filter the given packages map by those that contain aliases described by at
least one of the given given globs.
Returns a map with pkg-name as the key and the set of aliases from that package that matched the globs.
(filter-package-aliases {:package-a {}} [:*/test])
;; => {:package-a #{:test}}
Filter the given `packages` map by those that contain aliases described by at
least one of the given given `globs`.
Returns a map with pkg-name as the key and the set of aliases from that
package that matched the globs.
```clojure
(filter-package-aliases {:package-a {}} [:*/test])
;; => {:package-a #{:test}}
```(generate-sdeps-aliases project-root packages)Generate an -Sdeps compatible map containing aliases generated from various
workspace sources.
This is the primary way of augmenting clojure with new classpath information.
Aliases are generated from:
:kmono/packages containing :extra-deps.deps.local.edn in the project root.Generate an `-Sdeps` compatible map containing aliases generated from various workspace sources. This is the primary way of augmenting clojure with new classpath information. Aliases are generated from: 1) The set of packages in the workspace. These are added into an alias called `:kmono/packages` containing `:extra-deps`. 2) All the aliases from all packages in the workspace are raised up and combined, scoping their alias names to the package name. 3) The aliases from `deps.local.edn` in the project root.
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 |