I built a small wrapper that automatically provisions Babashka and its dependencies on the fly, making it seamless to run tasks via npx without any manual setup. Maybe it can be useful to others!
npx @bigconfig/bb tasks # -> bb tasks
npx @bigconfig/bb <args...> # -> bb <args...>
https://github.com/bigconfig-ai/npm-bbWhy install a JDK since BB doesn't need it?
;; Triggers Clojure CLI + JDK requirement {:deps {com.github.user/repo {:git/sha "abcdef12345..."}}} ;; Runs natively inside Babashka without a JDK {:deps {org.clojars.user/repo {:mvn/version "1.0.2"}}}
I think babashka https://book.babashka.org/#_paths_and_deps?
> The :deps entry is managed by https://github.com/borkdude/deps.clj and requires a java installation to resolve and download dependencies.
bb.edn bootstrap When BB_EDN_REPO=owner/project is set and no local file exists, the wrapper automatically fetches a remote GitHub repository's bb.edn, injects the repo itself as a pinned Git dependency using rewrite-edn, and bootstraps the necessary Clojure tools on the first run. https://bigconfig-ai.github.io/npm-bb/#bbedn