ALPHA - Not yet released
Note: currently only supports .clj
files.
Note: no explicit windowa support.
makejack.api.core
Main API namespace for tools designed to work with project.edn and mj.edn
default-jar-name
(default-jar-name {:keys [jar-type], :as project})
Helper to return the default jar file name.
When the :jar-type key of the project map specifies :uberjar, then the name will be for an uberjar.
deps-paths
(deps-paths deps aliases)
Helper to return the paths for deps with the given aliases applied.
aliases is a vector of keywords with deps.edn aliases to use.
Returns the :paths value, with :extra-paths from the specified aliases.
error
(error message)
(error message exit-code)
Exit with the given error message and exit code. The default exit-code is 1,
load-config
(load-config & [{:keys [dir], :as options}])
Load a map containing the project and the mj config.
load-config*
(load-config* & [{:keys [dir], :as options}])
Load a map containing the project and the mj config.
process
(process args options)
Execute a process.
args is a vector of arguments, the first of which is the program to execute. The arguments are used as strings.
options is a map of options, as specifed in babashka.process/process. Defaults to {:err :inherit}.
relative-to-resolver
(relative-to-resolver dir)
Resolves relative to the source file, or to the given directory.