This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-14
Channels
- # announcements (10)
- # architecture (4)
- # atom-editor (1)
- # babashka (53)
- # babashka-sci-dev (118)
- # beginners (91)
- # biff (12)
- # calva (19)
- # clara (13)
- # clerk (20)
- # clj-commons (25)
- # clj-kondo (6)
- # cljdoc (19)
- # cljs-dev (3)
- # clojars (2)
- # clojure (71)
- # clojure-art (2)
- # clojure-europe (68)
- # clojure-nl (1)
- # clojure-norway (6)
- # clojure-uk (3)
- # clojured (19)
- # clojurescript (34)
- # clr (19)
- # cursive (11)
- # emacs (14)
- # fulcro (3)
- # helix (2)
- # holy-lambda (2)
- # honeysql (27)
- # hyperfiddle (39)
- # malli (2)
- # off-topic (83)
- # polylith (4)
- # rdf (22)
- # re-frame (20)
- # reitit (4)
- # rewrite-clj (14)
- # shadow-cljs (17)
- # slack-help (2)
- # tools-deps (45)
- # xtdb (3)
Is there a way to use the :request-notify
op to notify a client when a new JavaScript runtime connects to the shadow-cljs process?
I’m working on editor integration. I would like to let the editor know that a there’s a new JavaScript runtime connected to the ClojureScript runtime the editor is connected to. Kinda like this: https://github.com/thheller/shadow-cljs/blob/9a36743674e7bac457c43761c2ef0cce0423862a/src/main/shadow/cljs/devtools/server/repl_impl.clj#L177 But the inverse: “A new runtime appeared”.
but that is a runtime? you can call it client if you want but it my terminology the thing running the compiled JS code is the runtime
Yes, sorry for the terminology confusion. Is there an example of how I’d do that? I can’t quite figure it out by reading remote.md
.
will send you everything connecting/disconnecting. so you could do the filtering on your end
just send it and open the UI. it should show up, and disconnect/reconnect on UI reload
you can {:op :request-supported-ops :to <runtime-id>}
to find out what the runtime can do
Is it possible to supply :compiler-options
on the command line when calling shadow-cljs from the clojure cli? I’ve tried variations on the following with no success:
clojure -M:cljs release app :compiler-options "{:pretty-print true :source-map true :pseudo-names true :pretty-print true}"
there is also clojure -M:cljs release app --debug
or clojure -M:cljs release app --pseudo-names
for exactly this
clojure -M:cljs release app --debug
worked great, thank you so much @U05224H0W! I was looking at the guide and totally missed section 6.9. Overriding from the CLI.