Liking cljdoc? Tell your friends :D

depo.utils


create-identifierclj

(create-identifier groupID artifactID dep-type)
source

create-keysclj

(create-keys project-type)
  • config-path - the full path to the config file as a string

Returns

  • :dependencies for :lein and :shadow
  • :deps for :default
- `config-path` - the full path to the config file as a string

Returns
- `:dependencies` for `:lein` and `:shadow`
- `:deps` for `:default`
sourceraw docstring

get-project-typeclj

(get-project-type config-path)
  • config-path - the full path to the config file as a string

Returns

  • :shadow for shadow-cljs.edn
  • :lein for project.clj
  • :default for everything else
- `config-path` - the full path to the config file as a string

Returns
- `:shadow` for shadow-cljs.edn
- `:lein` for project.clj
- `:default` for everything else
sourceraw docstring

parseclj

(parse arg)

Given a dependency string that follows the following schema [groupID/]artifactID[@version]

Returns a map with the keys :groupID, :artifactID, :version

Examples:

(parse "reagent")
; returns {:groupdID "reagent" :artifactID "reagent" :version nil}

(parse "emotion-cljs@0.2.0"'
; returns {:groupdID "emotion-cljs" :artifactID "emotion-cljs" :version 0.2.0}
Given a dependency string that follows the following schema
`[groupID/]artifactID[@version]`

Returns a map with the keys `:groupID`, `:artifactID`, `:version`

### Examples: 
```clj
(parse "reagent")
; returns {:groupdID "reagent" :artifactID "reagent" :version nil}

(parse "emotion-cljs@0.2.0"'
; returns {:groupdID "emotion-cljs" :artifactID "emotion-cljs" :version 0.2.0}
```
sourceraw docstring

xml->mapclj

(xml->map doc)

Converts an xml string into Clojure map structure

Converts an xml string into Clojure map structure
sourceraw docstring

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

× close