clojurescript

ClojureScript, a dialect of Clojure that compiles to JavaScript http://clojurescript.org | Currently at 1.10.879
Jack Arrington 2020-12-18T00:44:40.362600Z

Just want to say, I really appreciate that the docs at http://cljs.github.io/api/ include the source code right at the bottom of each page. Makes finding the "ground truth" much easier and has gotten me way more comfortable with the language in general 🎉.

âž• 1
Jon 2020-12-18T03:56:59.363400Z

is this a bug?

2020-12-18T04:37:59.364100Z

How does one print an html entity with reagent again?

2020-12-18T04:42:34.364400Z

Nevermind, found the docs 😅

Timofey Sitnikov 2020-12-18T11:07:29.369800Z

Good Morning Clojurians, I super confused. Why does shadow-cljs start the development http server when watching main build even if the :dev-http entry is in the :test build? Looking at the https://github.com/fulcrologic/fulcro-rad-demo/blob/master/shadow-cljs.edn, under :builds -> :test -> :devtools it calls for shadow-cljs back-end server to start. I have been assuming that it will only start for the test build, but when I start the main build, I still get the http server:

[I] /home/sporty/clojure/fulcro/fulcro-rad-demo-sittim~> shadow-cljs watch main
shadow-cljs - config: /home/sporty/clojure/fulcro/fulcro-rad-demo-sittim/shadow-cljs.edn
shadow-cljs - starting via "clojure"
shadow-cljs - HTTP server available at <http://localhost:8081>
shadow-cljs - server version: 2.11.8 running at <http://localhost:9630>
shadow-cljs - nREPL server started on port 9000
shadow-cljs - watching build :main
[:main] Configuring build.
[:main] Compiling ...
GUARDRAILS IS ENABLED. RUNTIME PERFORMANCE WILL BE AFFECTED.
Guardrails was enabled because the CLJS Compiler config enabled it
[:main] Build completed. (928 files, 0 compiled, 0 warnings, 18.48s)
If I comment out the :devtools section in the :test build, it does not start the server. Why does it start the server.

thheller 2020-12-18T11:18:46.371400Z

@timofey.sitnikov dev-http is always started and not tied to any specific build in general. the new [dev-http](https://shadow-cljs.github.io/docs/UsersGuide.html#dev-http) docs make that a bit clearer. it can be useful to have that server to quickly test release builds and so on

2
Timofey Sitnikov 2020-12-18T11:28:12.371800Z

OK, but that looks like the :dev-http config entry is not in the right place? It makes it look like it is particular to the test build. Is that correct?

Timofey Sitnikov 2020-12-18T11:29:28.372Z

One more question, If I spin up my own back end server, will having shadow-cljs server conflict with anything?

2020-12-18T14:18:04.372400Z

@timofey.sitnikov No conlict, just be careful to take a different port.

1