This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-22
Channels
- # announcements (2)
- # aws (5)
- # babashka (17)
- # beginners (108)
- # calva (28)
- # chlorine-clover (7)
- # clj-kondo (14)
- # cljs-dev (9)
- # cljsrn (2)
- # clojure (118)
- # clojure-europe (50)
- # clojure-finland (5)
- # clojure-france (15)
- # clojure-italy (9)
- # clojure-nl (14)
- # clojure-spec (11)
- # clojure-uk (43)
- # clojuredesign-podcast (1)
- # clojurescript (35)
- # clojutre (2)
- # clr (3)
- # community-development (6)
- # conjure (9)
- # core-async (41)
- # cursive (7)
- # data-science (7)
- # datomic (11)
- # events (1)
- # figwheel-main (4)
- # fulcro (20)
- # ghostwheel (9)
- # graalvm (18)
- # helix (46)
- # leiningen (14)
- # observability (2)
- # off-topic (23)
- # pathom (4)
- # re-frame (5)
- # reitit (5)
- # rum (2)
- # shadow-cljs (32)
- # spacemacs (8)
- # specter (5)
- # sql (36)
- # timbre (3)
- # vim (15)
- # xtdb (2)
- # yada (2)
Hi! I'm trying to set up shadow-cljs to use a REPL with iced-vim. I had to add https://liquidz.github.io/vim-iced/vim-iced.html#vim-iced-manual-shadow-cljs settings to my shadow-cljs.edn file and it worked. Then I thought about moving that settings to .nrepl.edn
or ~/.nrepl/nrepl.edn
. But it's not picking up the changes. I feel like I'm missing something here. I'm using :react-native
as target.
For now I'll leave the :nrepl
part of the settings on shadow-cljs.edn
and move the :dependencies
to deps.edn
. But if somebody thinks otherwise do let me know!
I don't know what dependencies have to do with nrepl but .nrepl.edn
should be picked up
Hi, with latest changes to clojurescript (https://clojurescript.org/guides/webpack) npm integration becomes better and better. thus there is a question - what is the difference in handling npm dependencies between shadow-cljs and clojurescript? is shadow-cljs mostly just a code reloader via websocket (and sane compiler settings)? why would I prefer shadow-cljs over clojurescript (and vice verse)? sorry if i am asking stupid things, just trying to understand how things are connected thanks!
code reloading, build your files based on target (e.g browser, node etc), code splitting, npm integration, sane project configuration settings
thanks
@kirill.salykin https://code.thheller.com/blog/shadow-cljs/2020/05/08/how-about-webpack-now.html
great summary thanks for this. š
code-reloading is maybe 5% of what shadow-cljs does so you get a lot more than that š
thanks
I did a release build and it's heavy. Although not too much, but out of curiosity, is there a way to look into these visually and see what is being included?
no probs. itās a little out of date but I just tested it on my app and it works. thereās no longer a release-snapshot fn in shadow. the build-report fn will generate the snapshot data
and youāll need > 1 snapshot to see the toggles on the left hand side. just rename the ālatestā one and re-gen (or copy ālatestā with another name).
sorry about the extra steps. I havenāt looked at it in a while. but now Iām learning about my new apps bundle š
how do i specify nrepl port for each target build. I tried looking at the docs but couldnt anything
its just a single nrepl port. but you connect and call (shadow/nrepl-select :app)
and that's how you specify which build for each repl
yeah, there should only be one nREPL port. you can connect multiple times and have multiple REPLs
Any problems with using :^const
for constants that will not change in a live-reload context, so that they can be used with case, like (case x my-const ...)
?
@isak ^:const
had issues in a couple releases. should be fixed in 2.9.8
. also don't use ^:const
š
I'm trying to introduce a shadow-cljs project at work. Is it possible to get the tree shaking provided by webpack when I use an npm lib? (it's a lib we own, specifically a component lib)