This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-14
Channels
- # aleph (1)
- # announcements (4)
- # babashka (12)
- # beginners (28)
- # bristol-clojurians (1)
- # calva (28)
- # cljs-dev (8)
- # cljsrn (1)
- # clojure (16)
- # clojure-europe (2)
- # clojure-uk (125)
- # clojurescript (6)
- # cursive (17)
- # datomic (2)
- # kaocha (7)
- # off-topic (6)
- # reagent (3)
- # shadow-cljs (25)
- # sql (6)
- # tree-sitter (1)
In the last 8 days of #shadow-cljs channel history, thheller has posted 122 comments (15 / day.) This is grade A support -- even better than paid teams at some workplaces. If you like shadow-cljs, please consider supporting him via Patreon (http://patreon.com/thheller) or Paypal. (http://paypal.me/thheller) (Not affiliated, just an appreciative consumer.)
probably stupid question, but is it even possible to test re-frame handlers/subs with node?
I guess maybe I have to use a browser to test it, even if the subs/events are not really touching the dom at all, it seems not to work
n00b question; I'm trying to figure out how best to use shadow/intellij/deps/react/material-ui.
Does shadow include a static file server to enable it to serve up the files it just compiled?
or do I have to use npm/yarn (or something else) to view from browser?
All the examples I can find use yarn start
to serve up files
and I'm wondering if that is mandatory, or if there is a more clojure-heavy way to do it
My background is in clojure/java, and not at all in NodeJS, so perhaps I am merely displaying that bias...
It provides it. If you have a config with this:
{:dev-http {8080 "public"}}
It will serve all the compiled files in the public folder through port 8080.perfect! thanks
There is also the :devtools option that you can put in a build, to configure stuff such as which function to run after the code has been reload at the browser.
yes I have done that
The shadow-cljs app itself is a clojure program, which yarn start
or what have you just shells out to
but I prefer to shuffle out of my comfort zone rather than stride
If you prefer to use deps.edn and Clojure aliases to start the program, that can be done
yes that is exactly what I am doing
You can also run it through clojure only. You add the dependency to the deps.edn
and config a alias to run the main
of Shadow-cljs. But I had problem connecting to the ClojureScript repl using this setting.
REPLing will depend on your editor. Iām not super familiar with Cursive. thheller (the author) uses it though
I use emacs. It is a repl middleware problem. I just didn't took time to look into it.
starting a watch for your build will automatically start the dev-http server if you configure it in your shadow-cljs.edn
I recently started playing around with shadow-cljs too and used npx create-cljs-project acme-app
to bootstrap my app
yeah, I'm trying to stay on the clojure toolset that I already understand, rather than the NodeJS one that I don't
which may cause me futher problems of course