Fork me on GitHub
#babashka
<
2020-01-01
>
borkdude22:01:50

A little spec in bb, as a lib (WIP) 🙂

😎 4
borkdude23:01:13

fwiw clojure.stacktrace is already in babashka, but not exposed. could easily be added

borkdude23:01:36

also the exceptions could probably be improved as well, somehow. not sure how

borkdude23:01:15

if you have any useful notes for development, you can add them to the README in the "developing babashka" section

borkdude23:01:06

I made an enhancement to deps.clj. Now you can do this:

{:aliases
 {:test
  {:extra-paths ["test"]
   :extra-deps {borkdude/spartan.test {:mvn/version "0.0.4"}}
   :main-opts ["-m" "spartan.test" "-n" "borkdude.deps-test"]}}}

$ alias babashka='deps.clj -Scommand "bb -cp {{classpath}} {{main-opts}}"'
$ babashka -A:test
Ran 3 tests containing 3 assertions.
0 failures, 0 errors.
$ babashka -e '(+ 1 2 3)'
6

borkdude23:01:08

No, not really. You can add it to only babashka

borkdude23:01:21

check out the main.clj namespaces and you'll find many other things that are only added to babashka

borkdude23:01:03

Note that there is a babashka/impl/clojure/stacktrace.clj which you should be using

borkdude23:01:07

not the normal Clojure one

borkdude23:01:38

the normal one had reflection issues (made a patch in JIRA for that)

borkdude23:01:55

I'm afk now, sleeping