Liking cljdoc? Tell your friends :D

hara.deploy.linkage


+default-packages-file+clj


+suffix-types+clj


collectclj

(collect)
(collect packages lookups project)
(collect packages
         lookups
         project
         {:keys [overlapped missing] :or {overlapped :error missing :none}})

cellects all information given lookups and project

(-> (collect -packages- -lookups- (project/project)) (get 'hara/core.version))

cellects all information given lookups and project

(-> (collect -packages- -lookups- (project/project))
    (get 'hara/core.version))
raw docstring

collect-entriesclj

(collect-entries packages lookups)

collects all entries given packages and lookups

(-> (collect-entries -packages- -lookups-) (get-in '[hara/core.version :entries])) => '#{[:clj hara.core.version]}

collects all entries given packages and lookups

(-> (collect-entries -packages- -lookups-)
    (get-in '[hara/core.version :entries]))
=> '#{[:clj hara.core.version]}
raw docstring

collect-entries-singleclj

(collect-entries-single package lookup)

collects all namespaces for given lookup and package

(collect-entries-single (get -packages- 'hara/core.version) (:clj -lookups-)) => '(hara.core.version)

collects all namespaces for given lookup and package


(collect-entries-single (get -packages- 'hara/core.version)
                        (:clj -lookups-))
=> '(hara.core.version)
raw docstring

collect-external-depsclj

(collect-external-deps packages)

collects dependencies from the local system

(collect-external-deps '{:a {:dependencies [org.clojure/clojure]}}) => '{:a {:dependencies ([org.clojure/clojure "1.9.0"])}}

collects dependencies from the local system

(collect-external-deps '{:a {:dependencies [org.clojure/clojure]}})
=> '{:a {:dependencies ([org.clojure/clojure "1.9.0"])}}
raw docstring

collect-internal-depsclj

(collect-internal-deps packages)

collects all internal dependencies

(-> -packages- (collect-entries -lookups-) (collect-linkages -lookups-) (collect-internal-deps) (get-in ['hara/test :internal])) => '#{hara/io.file hara/base hara/function.task hara/io.project}

collects all internal dependencies

(-> -packages-
    (collect-entries -lookups-)
    (collect-linkages -lookups-)
    (collect-internal-deps)
    (get-in ['hara/test :internal]))
=> '#{hara/io.file hara/base hara/function.task hara/io.project}
raw docstring

collect-linkagesclj

(collect-linkages packages lookups)

collects all imports and exports of a package

(-> -packages- (collect-entries -lookups-) (collect-linkages -lookups-) (get 'hara/core.version) (select-keys [:imports :exports])) => '{:imports #{[:clj hara.function]}, :exports #{[:clj hara.core.version]}}

collects all imports and exports of a package

(-> -packages-
    (collect-entries -lookups-)
    (collect-linkages -lookups-)
    (get 'hara/core.version)
    (select-keys [:imports :exports]))
=> '{:imports #{[:clj hara.function]},
     :exports #{[:clj hara.core.version]}}
raw docstring

collect-transfersclj

(collect-transfers packages lookups project)

collects all files that are packaged

(-> -packages- (collect-entries -lookups-) (collect-linkages -lookups-) (collect-internal-deps) (collect-transfers -lookups- (project/project)) (get-in ['hara/core.version :files]) sort) => (contains-in [[string? "hara/core/version.clj"]])

collects all files that are packaged

(-> -packages-
    (collect-entries -lookups-)
    (collect-linkages -lookups-)
    (collect-internal-deps)
    (collect-transfers -lookups- (project/project))
    (get-in ['hara/core.version :files])
    sort)
=> (contains-in [[string? "hara/core/version.clj"]])
raw docstring

create-file-lookupsclj

(create-file-lookups project)

creates file-lookups for clj, cljs and cljc files

(-> (create-file-lookups (project/project)) (get-in [:clj 'hara.core.version])) => (str (fs/path "src/hara/core/version.clj"))

creates file-lookups for clj, cljs and cljc files

(-> (create-file-lookups (project/project))
    (get-in [:clj 'hara.core.version]))
=> (str (fs/path "src/hara/core/version.clj"))
raw docstring

file-linkageclj

(file-linkage path)

returns the exports and imports of a given file

(file-linkage "src/hara/deploy/linkage/common.clj") => '{:exports #{[:class hara.deploy.linkage.common.FileInfo] [:clj hara.deploy.linkage.common]}, :imports #{[:clj hara.io.file] [:clj hara.function]}}

returns the exports and imports of a given file

(file-linkage "src/hara/deploy/linkage/common.clj")
=> '{:exports #{[:class hara.deploy.linkage.common.FileInfo]
                [:clj hara.deploy.linkage.common]},
     :imports #{[:clj hara.io.file]
                [:clj hara.function]}}
raw docstring

missing-entriesclj

(missing-entries packages lookups)

finds missing entries given packages and lookup

(missing-entries '{b {:name b :entries #{[:clj hara.1] [:clj hara.2]}}} '{:clj {hara.1 "" hara.2 "" hara.3 ""}}) => '{:clj {hara.3 ""}}

finds missing entries given packages and lookup

(missing-entries '{b {:name b
                      :entries #{[:clj hara.1] [:clj hara.2]}}}
                 '{:clj {hara.1 ""
                         hara.2 ""
                         hara.3 ""}})
=> '{:clj {hara.3 ""}}
raw docstring

overlapped-entriesclj

(overlapped-entries packages)

finds any overlapped entries for given map

(overlapped-entries '{a {:name a :entries #{[:clj hara.1]}} b {:name b :entries #{[:clj hara.1] [:clj hara.2]}}}) => '([#{a b} #{[:clj hara.1]}])

finds any overlapped entries for given map

(overlapped-entries '{a {:name a
                         :entries #{[:clj hara.1]}}
                      b {:name b
                         :entries #{[:clj hara.1] [:clj hara.2]}}})
=> '([#{a b} #{[:clj hara.1]}])
raw docstring

overlapped-entries-singleclj

(overlapped-entries-single x heap)

finds any overlaps between entries

(overlapped-entries-single '{:name a :entries #{[:clj hara.1]}} '[{:name b :entries #{[:clj hara.1] [:clj hara.2]}}]) => '([#{a b} #{[:clj hara.1]}])

finds any overlaps between entries

(overlapped-entries-single '{:name a
                             :entries #{[:clj hara.1]}}
                           '[{:name b
                              :entries #{[:clj hara.1] [:clj hara.2]}}])
=> '([#{a b} #{[:clj hara.1]}])
raw docstring

read-packagesclj

(read-packages)
(read-packages {:keys [root file] :as input})

reads in a list of packages to

(-> (read-packages {:file "config/packages.edn"}) (get 'hara/core.version)) => (contains {:description string? :include '[[hara.core.version :complete]], :name 'hara/core.version})

reads in a list of packages to 

(-> (read-packages {:file "config/packages.edn"})
    (get 'hara/core.version))
=> (contains {:description string?
              :include '[[hara.core.version :complete]],
              :name 'hara/core.version})
raw docstring

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

× close