This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-04
Channels
- # beginners (14)
- # boot (28)
- # chestnut (9)
- # cljsrn (18)
- # clojure (64)
- # clojure-conj (1)
- # clojure-dusseldorf (45)
- # clojure-finland (4)
- # clojure-gamedev (1)
- # clojure-greece (8)
- # clojure-italy (22)
- # clojure-russia (4)
- # clojure-spec (19)
- # clojure-uk (38)
- # clojurescript (49)
- # code-reviews (2)
- # component (12)
- # core-async (3)
- # cursive (3)
- # data-science (2)
- # events (4)
- # fulcro (394)
- # heroku (3)
- # hoplon (16)
- # immutant (11)
- # jobs (5)
- # lein-figwheel (1)
- # lumo (18)
- # off-topic (8)
- # om (11)
- # other-languages (1)
- # overtone (1)
- # pedestal (7)
- # portkey (62)
- # protorepl (1)
- # re-frame (40)
- # reagent (41)
- # ring-swagger (5)
- # spacemacs (5)
- # unrepl (5)
- # yada (12)
How can I add a cljs repl only component to system?
I can't add a dependency to dev/user.clj
because it's cljs only. Adding it to dev/cljs/user.cljs
doesn't have any effect on the reset calls by figwheel, only if I call reset manually in the cljs.user repl.
So... I guess my question is, where are the project.system/go
and project.system/reset
functions referenced so they are used by figwheel?
Since that is where the init
function is called, which specifies the regular production system.
I would like to be able to pass a dev-system there.
The figwheel sidecar system documentation https://github.com/bhauman/lein-figwheel/tree/master/sidecar also assumes the component is compilable by clojure. No dice getting the cljs only devtools into there... hm. Turning the user.clj into a user.cljc and using reader conditionals doesn't help either because the system config evaluation happens in clojure.