scittle

2025-06-17T16:28:19.633579Z

What do you think of this?

🤯 3
🔥 3
❤️ 1
2025-06-18T10:40:30.088219Z

I have pushed the Scittle reload code here https://github.com/jeroenvandijk/scittle/tree/scittle-reload The UI can use some love and in general it needs your feedback. What do we want in Scittle core and what should be a plugin etc. The error stacktrace stepping can be tweaked more for certain scenarios. To try it out yourself, I have included a local build in the todomvc example:

git clone 
cd scittle-replicant-todomvc
npm install
./josh.mjs
open 
Just change some files in the src directory. I can recommend changing some strings in views.cljc. Maybe introduce an error somewhere 🙂 My hope is that this reload functionality, and the added compatibility with lifecycle hooks, is another step closer to make it appealing to develop cljs apps in Scittle first. Note that I have used an adapted version of https://github.com/chr15m/cljs-josh, an excellent tool of @chris358, for this demo. This Scittle reloading functionality is backend agnostic though. You can simulate it also with sci.core.reload_scittle_tags("/src/todomvc/views.cljc") in the developer console for instance.

💯 1
🔥 3
Chris McCormick 2025-06-18T12:10:09.752089Z

Feel free to submit any changes back if you think it's appropriate. I am working towards a version of Josh that doesn't have to be npm installed, in case that is a blocker for people.

❤️ 1
2025-06-18T12:14:23.062759Z

I've just created an issue here https://github.com/babashka/scittle/issues/116 Feel free to add your vision on it @chris358

2025-06-18T12:17:30.506289Z

I have tried to develop the UI outside of Scittle core just with the Scittle API, but it was hard because I'm relying on things like edamame that are not included in Scittle yet. So I decided to work in core first, but now we have a proof of concept we can decide what is best. I think the lifecycle hooks are good for scittle.core and the UI could be first developed externally until we have something that everybody really wants in scittle.core

2025-06-18T12:19:23.496869Z

@chris358 btw, I used a part of josh for the reloading and I was wondering https://github.com/chr15m/cljs-josh/blob/main/josh.cljs#L92-L93 that a file-path can match with multiple script tags

🤔 1
Chris McCormick 2025-06-18T12:27:42.883379Z

I can't remember. 😅

😁 1
Chris McCormick 2025-06-18T12:28:57.630279Z

One thing I thought about was folding cljs-josh into the scittle project itself, so there would be a command scittle which you get if you npm install scittle. Not sure how @borkdude would feel about that.

👀 1
borkdude 2025-06-18T15:19:31.636179Z

I'll have a look at this thread some time this week

👍 1
❤️ 1
🙏 1
borkdude 2025-06-17T21:14:08.619869Z