Add an RCF that uses t.d.a. add-lib to load test deps
This makes it easier for me to develop and test `next.jdbc` in the same REBL setup I use for World Singles Networks development.
This commit is contained in:
parent
fec1166e5c
commit
2b385a6ec5
1 changed files with 18 additions and 0 deletions
|
|
@ -126,3 +126,21 @@ CREATE TABLE " fruit " (
|
|||
["Orange" "juicy" 89 88.6]]
|
||||
{:return-keys false})
|
||||
(t)))))
|
||||
|
||||
(comment
|
||||
;; this is a convenience to bring next.jdbc's test dependencies
|
||||
;; into any REPL that has the add-lib branch of tools.deps.alpha
|
||||
;; which allows me to develop and test next.jdbc inside my work's
|
||||
;; "everything" REBL environment
|
||||
(require '[clojure.tools.deps.alpha.repl :refer [add-lib]]
|
||||
'[clojure.java.io :as io]
|
||||
'[clojure.edn :as edn])
|
||||
(def repo-path "/Developer/workspace/next.jdbc")
|
||||
(def test-deps (-> (io/reader (str repo-path "/deps.edn"))
|
||||
(java.io.PushbackReader.)
|
||||
(edn/read)
|
||||
:aliases
|
||||
:test
|
||||
:extra-deps))
|
||||
(doseq [[coord version] test-deps]
|
||||
(add-lib coord version)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue