nbb

Benjamin 2022-12-03T13:05:49.811669Z

cider friends rejoice, https://github.com/clojure-emacs/cider/pull/3272 on latest cider, you can now do cider-connect and it should just work. No need anymore for the workaround snippet! This is for nbb, scittle and joyride

1
Daniel Gerson 2022-12-03T14:22:35.185729Z

I feel like... the snippet has been there for ages... don't touch it and it will continue working 😅 Good news though 😆

😛 1
Benjamin 2022-12-03T14:59:31.698689Z

that snippet was crafted and honed over a period of months for sure lol

🫠 1
Benjamin 2022-12-03T13:16:50.348699Z

jo how do I include clojurescript deps?

borkdude 2022-12-03T13:17:22.818669Z

yo man. in nbb.edn :)

Benjamin 2022-12-03T13:17:48.872709Z

ah yea I found it https://github.com/babashka/nbb#clojure-dependencies

Benjamin 2022-12-03T13:38:38.649949Z

Is there a cljs.spec I can pull or is that special? https://github.com/Vincit/venia needs cljs.spec.alpha

borkdude 2022-12-03T13:41:56.551639Z

@benjamin.schwerdtner I would say it's bad practice to impose cljs.spec on library users, unless cljs.spec is central to the tool, since it will significantly increase the bundle size. Perhaps you can suggest to the library making that optional and meanwhile move it out of the way in a fork

👀 1
borkdude 2022-12-03T13:42:39.490669Z

There is currently no cljs.spec available in nbb yet

👍 1
Daniel Gerson 2022-12-03T14:24:38.490759Z

It was nbb that made switch from specto malli. No regrets so far.

👀 1
Benjamin 2022-12-03T17:35:59.838769Z

what do you use to make web requests? Preferably it would fit the canonical api that bbashka curl also has with :method, :body, :headers

borkdude 2022-12-03T17:37:51.399699Z

@benjamin.schwerdtner If you are using a recent version of Node.js you can use fetch

Chris McCormick 2022-12-04T11:34:16.688559Z

Or npm install node-fetch.

👍 1
Benjamin 2022-12-04T12:05:05.224379Z

It works

Benjamin 2022-12-03T17:38:09.669459Z

ok I try