Add reloading API for external tools
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- clojure, javascript
Research direction
Start by reviewing the linked scittle-reload example and the proposed scittle.core.reload API, then compare the lifecycle-hook references from Shadow-cljs and Figwheel. Done should include a core reload mechanism that external tools can use, with lifecycle hooks supported; error reporting and popup feedback are described as optional plugin work.
Written by the indexing model from the issue text.
Description
In order to develop any serious cljs/scittle app we need help of some kind of livereloading. cljs-josh is the first (public) tool that offers livereloading of Scittle apps. It is still missing some essential features such as lifecycle hook support and error reporting. With some work this could be added to josh or another tool, however I believe it is desirable to have some reloading functionality part of Scittle itself (that 3rd parties like Josh can use).
The exported js API could be something like:
scittle.core.reload("/path-to-some-cljs-asset")
What would this reloading api would trigger:
- Support wide-spread lifecycle hooks from tools like Shadow-cljs and Figwheel
- A popup that reports a successful reload (e.g. BB icon) or a popup reports a failure
Since Sci provides enough information (file contents, rich stacktraces) we can create a nice UI that goes through the trace step by step.
I believe 1 is essential to have in the core of Scittle to avoid fragmentation. 2 could be supported by an (external) plugin (I think) and would allow some experimentation with feedback styles. To enable external plugins for this we would need an API like scittle.core.on_error or something similar.
Example code of the above in action
A quick demo of the possibilities:
https://github.com/user-attachments/assets/31ee77d0-1db2-4989-a147-66c594ae455c
- Dominant language
- HTML
- Stars
- 446
- Forks
- 37
- Avg merge
- 1m
- Merged PRs (30d)
- 6
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from babashka/scittle
-
Expose an additional 27 types and 15 functions to scittle by adding mapping entries to cljs.coreOpen
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
All issues in babashka/scittle
Similar issues
-
v3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
pluginkollektiv/antispam-bee#952 ·
Maintainers usually reply within 1 day
-
area: middleware enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
config: reject Proxy-Authorization and Proxy-Authenticate in server headersPossibly taken @haseemajaz claimed this today. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
rohitgollarahalli/mcpx#38 · 1 comment ·
Maintainers usually reply within 1 day
-
area: API good first issue size/xs
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
DahanItamar/DockNest#354 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100