Proxy to deps.edn file
Proxy to deps.edn file
(extract-deps {:keys [deps aliases] :as _deps-edn} excluded-aliases)
Extract dependencies in a deps.edn
file
Params:
deps-edn
is the content of the file to search dependencies inexcluded-aliases
is a collection of aliases to excludeExtract dependencies in a `deps.edn` file Params: * `deps-edn` is the content of the file to search dependencies in * `excluded-aliases` is a collection of aliases to exclude
(extract-paths deps-edn)
(extract-paths {:keys [paths aliases] :as _deps-edn} excluded-aliases)
Extracts the :paths
and :extra-paths
from a given deps.edn
e.g. {:run {...}}
Params:
deps-edn
content the deps edn file to search extract path inexcluded-aliases
is a collection of aliases to excludeExtracts the `:paths` and `:extra-paths` from a given `deps.edn` e.g. {:run {...}} Params: * `deps-edn` content the deps edn file to search extract path in * `excluded-aliases` is a collection of aliases to exclude
(hephaistox-deps deps-edn)
Filter the Params:
deps-edn
the deps-edn file contentFilter the Params: * `deps-edn` the deps-edn file content
(is-hephaistox-deps dep)
For a deps entry, return true if the dependency is from hephaistox monorepo
Params:
dep
is a pair of value, as seen in the :deps
mapFor a deps entry, return true if the dependency is from hephaistox monorepo Params: * `dep` is a pair of value, as seen in the `:deps` map
(load-deps)
Load the current project deps.edn
files
Load the current project `deps.edn` files
(remove-deps deps-edn dep-libs-to-remove)
Remove the dependency called dep-lib-to-remove
in the deps
deps-edn
the deps edn content to updatedep-libs-to-remove
is the list of dependencies to removeRemove the dependency called `dep-lib-to-remove` in the `deps` * `deps-edn` the deps edn content to update * `dep-libs-to-remove` is the list of dependencies to remove
(update-alias-local-root base-dir alias-map)
Update the local root directories in an alias
After the update, the local root path will be relative and starting from base-dir
Params:
base-dir
is the directory where you look at that app fromalias-map
is the content of the alias as found in the deps.edn
fileUpdate the local root directories in an alias After the update, the local root path will be relative and starting from `base-dir` Params: * `base-dir` is the directory where you look at that app from * `alias-map` is the content of the alias as found in the `deps.edn` file
(update-aliases-local-root base-dir aliases-map)
Update all aliases local root to be relative starting from base-dir Params:
base-dir
aliases-map
the map describing the alias as seen in deps.ednUpdate all aliases local root to be relative starting from base-dir Params: * `base-dir` * `aliases-map` the map describing the alias as seen in deps.edn
(update-dep-local-root base-dir dep-map)
Update the local root directories in a dependency map (of one lib)
After the update, the local root path will be relative and starting from base-dir
Params:
base-dir
is the directory where you look at that app fromdep-map
dep is a dependency map (of one lib)Update the local root directories in a dependency map (of one lib) After the update, the local root path will be relative and starting from `base-dir` Params: * `base-dir` is the directory where you look at that app from * `dep-map` dep is a dependency map (of one lib)
(update-deps-edn-local-root base-dir deps-edn)
Update all the deps-edn file to be relative starting from base-dir,
Are considered :deps
and :extra-deps
in aliases and at the root of the deps.edn
file
Params:
base-dir
deps-edn
the content of the fileUpdate all the deps-edn file to be relative starting from base-dir, Are considered `:deps` and `:extra-deps` in aliases and at the root of the `deps.edn` file Params: * `base-dir` * `deps-edn` the content of the file
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close