babashka

teodorlu 2025-08-05T08:09:47.341949Z

Looking for a bit of advice / what other people are doing. I have some code I'd like to use both from my JVM REPL and from Babashka tasks. Where would you put that code, and where would you put its dependencies? • All "dev help code" in dev/, then put "dev" on :paths both in deps.edn and bb.edn? • What about dependencies for the code? Dependencies both in bb.edn and the :dev alias in deps.edn? I'm aiming to write as much as possible of the dev/ code compatible with both Babashka and JVM Clojure.

✅ 2
borkdude 2025-08-05T08:11:50.077099Z

I usually call dev bb or .bb or .build but I think dev is fine too :) About sharing deps, you could use an extra deps edn with local root for this too

👍 1
teodorlu 2025-08-05T08:15:25.461739Z

> About sharing deps, you could use an extra deps edn with local root for this too Care to elaborate a bit here? Not sure I'm following — there's probably something I don't know how to do. My understanding is that if I add :local/root "." to my bb.edn, that only picks up the "root" dependencies from deps.edn. Do you mean having a different deps.edn file that just contains the dev/babashka deps?

teodorlu 2025-08-05T08:18:41.050799Z

I think I might have the idea —

;; devdeps/deps.edn
{:deps {#_"shared dev dependencies"}}
;; deps.edn
{:aliases {:dev {:extra-deps {blabla {:local/root "devdeps"}}}}}
;; bb.edn
{:deps {blabla {:local/root "devdeps"}}}
Is this what you had in mind?

borkdude 2025-08-05T08:43:33.030589Z

yes

borkdude 2025-08-05T08:44:15.290299Z

another possibility is to re-use the root deps.edn and do this:

(babashka.deps/add-deps (clojure.edn/read-string (slurp "deps.edn")) {:aliases [:dev]})

🔥 1
1
teodorlu 2025-08-05T08:54:08.558259Z

Oooh, that's nice, I like not having to create extra folders just to share deps. Thanks again! ❤️

borkdude 2025-08-05T21:07:04.293929Z

Awesome, another milestone in bb history! :)

🤛 5
🤜 5
🎉 3
grzm 2025-08-05T21:21:27.969559Z

Looking like it's soon time to sunset awyeah-api.

borkdude 2025-08-05T21:23:46.072959Z

@grzm Thanks for creating that library!

💯 2
grzm 2025-08-05T21:24:38.465139Z

And thanks for helping me get the necessary changes into babashka proper to support it!

grzm 2025-08-05T21:26:06.080569Z

👀 Looks like I released it 1 May 2022. So, over three years of service.

🫡 6