lumo

:lumo: Standalone ClojureScript environment. Currently at version 1.9.0
pablore 2018-06-24T16:10:17.000004Z

Hi! So we have this big piece of Nodejs code at work, and I’ve been thinking on extending it using clojure. Can I use lumo for this?

pablore 2018-06-24T17:08:16.000009Z

What I mean, I want to require cljs code in my node project

richiardiandrea 2018-06-24T17:37:03.000065Z

@pablore you could compile down to js and then require but I am afraid there is some twist there

richiardiandrea 2018-06-24T17:37:44.000057Z

I am saying this because Thomas Heller has an explicit :npm-module for exactly that use case in shadow cljs

pablore 2018-06-24T17:38:06.000077Z

Just found out there is some idea for an embedding api, https://github.com/anmonteiro/lumo/issues/306

richiardiandrea 2018-06-24T17:38:24.000022Z

Yeah that's no yet in lumo

richiardiandrea 2018-06-24T17:39:15.000012Z

I have just received the approval for working on it from Antonio but at the moment I am using Shadow because it is more compatible with my colleague's IDEs/OS

richiardiandrea 2018-06-24T17:40:41.000112Z

so probably the easiest way is https://shadow-cljs.github.io/docs/UsersGuide.html#target-npm-module

richiardiandrea 2018-06-24T17:41:45.000080Z

at the moment

pablore 2018-06-24T17:42:33.000070Z

looks great, thanks!

👍 1
pablore 2018-06-24T17:54:07.000109Z

and it works like a charm

richiardiandrea 2018-06-24T17:56:05.000108Z

cool 😉