This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-26
Channels
- # announcements (2)
- # babashka (55)
- # beginners (107)
- # calva (65)
- # cider (5)
- # clara (4)
- # clj-kondo (17)
- # cljs-dev (38)
- # cljsrn (16)
- # clojure (117)
- # clojure-australia (8)
- # clojure-europe (13)
- # clojure-italy (4)
- # clojure-nl (5)
- # clojure-provo (2)
- # clojure-sweden (9)
- # clojure-taiwan (1)
- # clojure-uk (41)
- # clojurescript (40)
- # code-reviews (1)
- # conjure (40)
- # cursive (4)
- # datomic (11)
- # events (2)
- # fulcro (33)
- # graalvm (1)
- # jobs (2)
- # jobs-discuss (19)
- # lsp (18)
- # off-topic (58)
- # polylith (2)
- # quil (2)
- # react (28)
- # reagent (35)
- # reitit (3)
- # remote-jobs (1)
- # ring (9)
- # sci (76)
- # shadow-cljs (19)
- # sql (10)
- # testing (5)
- # vim (13)
- # xtdb (5)
@thheller First, I find shadow-cljs to be an amazing piece of software, thank you! I like to turn autobuild off, but then I would like it to recompile if I reload the browser. Is there a simple way to achive that?
@maxt you can toggle the autobuild from a CLJ REPL via (shadow/watch-set-autobuild! :the-build false)
and then trigger a compile via (shadow/watch-compile! :the-build)
.
Hello @thheller, I've just created a pull request to add a shim file to the shadow-cljsjs library, whould you be so kind as to review the changes and accept. This is my first shim file created and any pointers would be appriciated, Thanks
why did you create it? I can't find the keycloak-js package here https://github.com/cljsjs/packages
I want to expose the Keycloak global variable after installing keyclaok-js (using yarn add keycloak-js), as our code is not able to access it using js/Keycloak
why do you want to access it via js/Keycloak
? if this is just for your code and not a public library then put the shim file onto your classpath. no need for it to be in shadow-cljsjs
just (:require ["keycloak-js" :as keycloak-js]
in your code and use keycloak-js
instead of js/Keycloak
?
no need for this cljsjs indirection if its your code anyways and not some official cljsjs package you are trying to replace
OK thanks for the prompt reply, I will let you know if there are any further issues 🙂
I use keycloak with shadow-cljs regularly. Pulling it in through NPM and using it with (:require ["keycloak-js" :as keycloak-js])
works great for me. If you have any specific questions about it I'd be glad to answer them.
@thheller to create a compile-on-reload trigger, could I write a cljs :before-load function that somehow signals the shadow server to recompile?
no, before-load is triggered after a compile completes. not when the browser reloads.