Fork me on GitHub
#babashka
<
2022-05-11
>
dergutemoritz12:05:13

Heya, question regarding local/deps option in bb.edn: Is it also possible to re-use deps from aliases defined in the given deps.edn this way?

borkdude12:05:00

@dergutemoritz Unfortunately this isn't supported by deps.edn . What you could however do is something like:

bb --classpath $(clojure -Spath -A:foo)

dergutemoritz12:05:00

@borkdude Thanks for the quick reply! 🙇 Nice, with BABASHKA_CLASSPATH I should be able to make this available by default even!

👍 1
dergutemoritz12:05:25

Hmm but this will always override deps given in bb.edn right?

tbrooke13:05:21

I have some npm libraries they all implement a CLI - I can simply call the CLI with Babashka or II can use NBB probably at a deeper level - My ultimate use case is to send data froma web app into the npm library for conversion - ie markdown to Html or a custom schema declaration to JSON. schema -- Is there a difference ie in performance between nbb v Babashka for this type of use case?

borkdude13:05:45

@tbrooke If you don't do anything else than calling those CLIs from the command line, it doesn't really matter. If you need to call those libraries programmatically, then #nbb will start to make sense