-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from liquidz/dev
0.13.0
- Loading branch information
Showing
10 changed files
with
53 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/.cpcache/ | ||
.nrepl-port | ||
/target | ||
.clj-kondo/.cache | ||
**/.clj-kondo/.cache | ||
**/.lsp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
(ns antq.dep.babashka | ||
(:require | ||
[antq.dep.clojure :as dep.clj] | ||
[antq.util.dep :as u.dep] | ||
[clojure.java.io :as io])) | ||
|
||
(def ^:private project-file "bb.edn") | ||
|
||
(defn load-deps | ||
([] (load-deps ".")) | ||
([dir] | ||
(let [file (io/file dir project-file)] | ||
(when (.exists file) | ||
(dep.clj/extract-deps (u.dep/relative-path file) | ||
(slurp file)))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
(ns antq.dep.babashka-test | ||
(:require | ||
[antq.dep.babashka :as sut] | ||
[antq.record :as r] | ||
[clojure.test :as t])) | ||
|
||
(t/deftest load-deps-test | ||
(t/is (= [(r/map->Dependency {:type :java | ||
:file "test/resources/dep/bb.edn" | ||
:name "bb/core" | ||
:version "1.0.0" | ||
:project :clojure})] | ||
(sut/load-deps "test/resources/dep")))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{:deps {bb/core {:mvn/version "1.0.0"}}} |