This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-01
Channels
- # aws (1)
- # beginners (237)
- # boot (2)
- # calva (6)
- # cider (16)
- # clara (10)
- # clj-kondo (1)
- # cljs-dev (24)
- # clojure (29)
- # clojure-brasil (2)
- # clojure-dev (20)
- # clojure-europe (1)
- # clojure-italy (56)
- # clojure-japan (1)
- # clojure-nl (16)
- # clojure-spec (12)
- # clojure-uk (12)
- # clojurescript (24)
- # clojureverse-ops (3)
- # core-async (3)
- # cursive (21)
- # datascript (5)
- # datomic (82)
- # devops (5)
- # duct (14)
- # emacs (2)
- # fulcro (2)
- # jobs (6)
- # juxt (7)
- # kaocha (6)
- # leiningen (19)
- # luminus (3)
- # nrepl (51)
- # off-topic (208)
- # other-languages (1)
- # re-frame (8)
- # reagent (9)
- # remote-jobs (6)
- # shadow-cljs (37)
- # spacemacs (6)
- # testing (12)
- # tools-deps (25)
@caleb.macdonaldblack that was indeed a bug. fixed in 2.8.36
.
Thanks, that fixed it. :thumbsup:
my asset-path needs to change depending on where it's deployed.
- locally: /assets/app/js
- deployed on server: /some-path/assets/app/js
before we were doing something silly: had it configured to be ../assets/app/js
this worked until we added a child route 😛 /some-path/foo/bar
breaks it
any advice?
I'm considering that now but it would be annoying to have to support different behavior in code like that
@lilactown :asset-path "/assets/app/js" :release {:asset-path "/some-path/assets/js"}
?
https://shadow-cljs.github.io/docs/UsersGuide.html#_release_specific_vs_development_configuration
do reload hooks need to be configured in the entry point namespace?
I’m probably doing something wrong because shadow is telling me no :after-reload
hooks are configured
relevant config:
:widget {:target :browser
:dev {:output-dir "resources/static/js/widget"
:asset-path "/static/js/widget"}
:release {:output-dir "widget"}
:devtools {:after-load ladder.reconciler/live-reload!
:watch-dir "resources"}
:modules {:main {:entries [ladder.widget.ui]
:init-fn ladder.widget.ui/run}}}
I would recommend using the metadata always nowadays but it should be fine? assuming of course that the ladder.reconciler
ns is actually included in the build?
it definitely is
it’s clearly not fine 🙂
yeah that namespace doesn’t exist…
my bad
do you folks think that shadow-cljs
could successfully be compiled by the GraalVM compiler?
@richiardiandrea no that will never be possible
well shouldn't say never probably but in its current form it is not possible to load and compile code inside a native image
I don't enough either 😄 There use to be a problem with dynamically change class loaders but a tool like shadow probably should not do that (unless it does 😃)
@thheller Does shadow-cljs automatically attempt to install missing cljsjs npm packages?
only those that actually properly declare their npm dependencies which most of them don't do
What would the advantage be of compiling with GraalVM? If you want independence from the JVM, self-hosting would probably be easier? (relatively speaking, I am sure it's not "easy", either)
@polymeris the advantage is mainly startup time. The Cljs compiler is inevitably tied to the JVM now and I don't think this will change in the future. So the only other thing you can do as of this point in time is GraalVM