Fork me on GitHub
#nextjournal
<
2022-07-08
>
Bardia Pourvakil15:07:34

Hey is there anyway I can package clojure-mode as a JS library to use inside a web project

borkdude15:07:58

@bardia.95.pourvakil Hey! I think you can. Why not?

Bardia Pourvakil15:07:21

What are the steps to do so?

borkdude15:07:26

I've done that myself here as well, with shadow-cljs: https://github.com/borkdude/blog/blob/main/shadow-cljs.edn

Bardia Pourvakil15:07:28

Any resources I can check out

borkdude15:07:06

I used this for only highlighting clojure, not anything more sophisticated

borkdude15:07:55

I guess this demo project is also something you can look at (even more so): https://github.com/nextjournal/clojure-mode/tree/main/demo

borkdude15:07:06

Maybe @andrea712 can also give some advice since he worked on this very recently

Bardia Pourvakil16:07:35

And doing this shadow cljs build will allow me to use this library inside a JS project?

mkvlr18:07:58

@bardia.95.pourvakil my last interaction with your employer went pretty poorly so I'm not willing to put in the time to figure this out for them. And please stop spamming me with the same question on different channels.