This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-29
Channels
- # beginners (1)
- # cider (7)
- # cljsrn (6)
- # clojars (3)
- # clojure (35)
- # clojure-nl (2)
- # clojure-spec (5)
- # clojure-uk (9)
- # clojurescript (18)
- # clojurex (1)
- # community-development (2)
- # cursive (27)
- # datomic (12)
- # duct (11)
- # emacs (5)
- # hoplon (5)
- # immutant (2)
- # leiningen (1)
- # luminus (15)
- # nyc (1)
- # om (9)
- # om-next (5)
- # onyx (55)
- # parinfer (1)
- # re-frame (3)
- # reagent (44)
- # reitit (11)
- # ring-swagger (4)
- # shadow-cljs (25)
- # videos (1)
@thheller I learned something interesting using Stu today. Using a minified d3.js makes no difference to overall artifact size. Does this make sense? And is it d3 specific or is this generally true for npm deps?
you can see what I mean in the latest sample app comparing 0.9 and 1.0 http://htmlpreview.github.io/?https://github.com/stevebuik/Stu/blob/master/resources/public/stu-builds.html
Just saw that you added "Conditional Reading" (not sure when that was added) - that is a really useful feature, and will make node/browser code much easier, thanks.
My unrelated question: is it possible to manually trigger hot code reloading, and stop the automatic load on file save?
@steveb8n everything from node_modules
is minimized by Closure :simple
optimizations yes. It sometimes even makes already minified stuff smaller but going out of your way to specifically select minified builds is not required no.
the bundle process has a bit of overhead per file though. so getting something minified over lots of files is better but not really required. overhead is small and might get smaller over time since I didn't try to optimize the overhead at all yet
@mjmeintjes yes it is possible. how would you want to trigger the reload though? (shadow/watch :app {:autobuild false})
will disable the automatic reloading.
Not really sure what the best solution would be, but I thought about triggering reloading from repl if that was possible.
Excellent, thanks!
Another thing: I've been testing out the new cider version's integration with shadow-cljs, and it mostly works great. Using their function cider-create-sibling-cljs-repl
, I can easily create a javascript shadow-cljs repl. This works, but the only problem is that The only slight "snag" I've run into is that shadow-cljs exits with [:no-client :devcards "Make sure your JS environment has loaded your compiled ClojureScript code."]
if I try to create the repl before first loading the web page. But, of course I can't, because cider-create-sibling-cljs-repl
also starts the watch and compiles the code (it runs (do (require '[shadow.cljs.devtools.api :as shadow]) (shadow/watch :%s) (shadow/nrepl-select :%s))
). Is there a way to disable the initial check for connected JS environment?
I can create an issue if that is too complicated to discuss here.
I thought the check would make things more user friendly. turns out it did the opposite 😉
Great - very likely that I'm running a few versions behind - you seem to move very fast.
I must add that with the new cider improvements integrating shadow-cljs, the development story of ClojureScript is becoming really great. Thanks for all the work! 👍
@mjmeintjes pushed [email protected]
. if you start using the triggered compile I'd love some feedback about that. I have often though about using that myself since file watching seems to do a lot of unnecessary compiles. just to lazy to set it up.
I'm testing out the triggered compile now. I works great, the only problem I've found is that if I trigger a recompile, and nothing has changed, then the hud reloading image does not go away. I've opened up an issue for this.