Fork me on GitHub
#sci
<
2022-07-01
>
martinklepsch11:07:24

If I wanted to create a browser-playground for a specific library, where should I start? Is there a repo I could use as a starting point?

borkdude11:07:59

@mkvlr ^ I keep hearing this question over and over. We should maybe build something? ;)

❤️ 2
borkdude11:07:48

@martinklepsch You could maybe start with https://nextjournal.github.io/clojure-mode/ and then add your own library in the mix.

mkvlr11:07:31

@borkdude we're on it

🔥 4
borkdude11:07:07

Anything I'm not aware of?

mkvlr13:07:07

I think you're aware of most things

👍 1
mkvlr13:07:26

maybe not that codemirror 6 supports embedded grammars

mkvlr13:07:56

so once we wrap up the migration to 6.0 we can have clojure mode embedded in markdown code fences

borkdude13:07:26

Not sure what it means, but it surely sounds interesting :)

mkvlr14:07:34

moving clerk’s parsing to a cljc ns is something I’m also looking at

mkvlr15:07:36

that was painless and all those deps should work in cljs, correct?

borkdude15:07:07

at least the deps I'm familiar with, yes :)

mkvlr15:07:06

I vouch for the one with nextjournal. and if I’m not mistaken you’re mainting all the other ones except clojure.core 🙃

borkdude15:07:03

indeed haha

mkvlr11:07:32

@martinklepsch I'd recommend starting from https://github.com/nextjournal/clojure-mode/pull/25 which we'll wrap up next week, this adds support for Clerk's viewers to it (besides upgrading Codemirror & other deps)

martinklepsch11:07:48

clojure-mode looks awesome really awesome! Ideally I was looking for something that would be more a matter of configuring+deploying rather than building 😅 But seems like clojure-mode would be an amazing foundation for that

jackrusher14:07:42

@borkdude yeah, definitely something that should exist