cherry 2023-05-13

@borkdude where is Cherry at with compiling other CLJS libraries? It works like a charm for writing a simple stuff (and I have to say I'm really fond of it, it was totally needed and I appreciate how light it is. Has it been tested with other libraries yet? Just out of curiosity, say I want to add https://github.com/binaryage/cljs-devtools/blob/master/docs/installation.md for development, will it work? And how would one include a CLJS lib anyway, given that we run it via npx? Is Cherry meant primarily for use with JS libs?

This part of cherry is still underdeveloped.

👍 1

Yeah I thought so. No problem.

I hope to address this sooner than later

1

It'd be great. Cherry's got a lot of potential.

Thanks. How are you using it currently?

@borkdude so after trying to write web components in CLJS, I eventually gave up on that and decided I'd: • Write Web Components in pure JS. UI only. • Would write anything that's not UI in CLJS/Cherry and communicate with Web Components via web workers. Here's an example: • Component: https://github.com/BizMentorAI/nace-lookup/blob/master/public/components/nace-lookup/nace-lookup.js • Worker: https://github.com/BizMentorAI/nace-lookup/blob/master/src/workers/autocomplete/autocomplete.cljs I don't want to use the one big bundle approach that most are using or at least encouraging (Shadow, Webpack etc), I prefer light components and loading them as user needs them. For that Cherry is perfect, it's fast and I have a babashka watcher to compile the code https://github.com/BizMentorAI/nace-lookup/blob/master/watch.clj I'm extremely happy with it so far (I barely started, but it looks very promising as of yet).

👍 1