nbb

gdubs 2022-11-15T18:26:49.127259Z

I'm hoping to use datascript from nbb. Using the clojure package via nbb.edn complains about the missing goog closure library. Looks like https://github.com/tonsky/datascript/blob/78fdf8ac2666ff013a60460085c64d32f9573d00/src/datascript/db.cljc#L3. So I'm guessing my best bet is to npm install datascript instead?

borkdude 2022-11-15T18:35:47.097109Z

@gdwarner https://github.com/logseq/nbb-logseq is a spin-off from nbb which has datascript :)

👍 1
gdubs 2022-11-15T21:32:16.168719Z

Taking a step back, if I want to call a simple cljs function from javascript without compiling it using something like shadow or cherry, can I use either nbb's loadFile function or something in SCI? In which case would I use either approach?

gdubs 2022-11-15T21:57:04.202839Z

Thanks.

borkdude 2022-11-15T22:02:21.802969Z

I now updated the docs: https://github.com/babashka/nbb#calling-nbb-from-javascript

👍 1