This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-13
Channels
- # announcements (1)
- # babashka (12)
- # beginners (10)
- # biff (9)
- # calva (2)
- # cherry (21)
- # cider (14)
- # clj-commons (76)
- # clj-kondo (8)
- # clj-on-windows (34)
- # cljs-dev (5)
- # clojure (48)
- # clojure-austin (7)
- # clojure-europe (97)
- # clojure-nl (1)
- # clojure-norway (14)
- # clojure-uk (22)
- # clojurescript (137)
- # conjure (33)
- # cursive (4)
- # datalevin (1)
- # deps-new (4)
- # devcards (2)
- # duct (3)
- # events (1)
- # fulcro (12)
- # graphql (9)
- # hyperfiddle (16)
- # jobs (8)
- # kaocha (1)
- # leiningen (6)
- # lsp (39)
- # malli (38)
- # membrane (20)
- # nbb (68)
- # observability (7)
- # off-topic (49)
- # pathom (11)
- # polylith (8)
- # portal (22)
- # re-frame (6)
- # releases (1)
- # remote-jobs (2)
- # shadow-cljs (24)
- # spacemacs (2)
- # squint (6)
- # xtdb (7)
Hello, does anybody have a good example of a GitHub action that runs tests in a shadow-cljs project? I have a :target
like this:
{:target :node-test
:output-to "tests.js"
:ns-regexp "sitefox.*$"
:autorun true}
And an npm script that looks like this for running it:
shadow-cljs compile test && node tests.js
I'd like to be able to do this on each push/PR on Linux and Mac.(got it working)
is there a macro-accessible variable or anything to know from the macro-expand-time/runtime whether the build was produced by "compile" vs "release"?
@zimablue (:shadow.build/mode &env)
in the macro. :release
for release
builds, otherwise :dev
Hi Thomas, just notifying you, that Closure seems to also not support ResizeObserver API. Added a couple more externs manually. Which leads me to think, what other APIs aren’t supported.
https://github.com/google/closure-compiler/blob/master/externs/browser/wicg_resizeobserver.js
Hmmm, should I somehow notify Closure that I’m using this API in my JS file?
This is my js file head
It’s part of the library. Then I lein install
this lib, and use it in a different project. The latter project only started to work properly after I supplied borderBoxSize, inlineSize, blockSize to its externs/app.txt
maybe an old shadow-cljs / clojurescript version?
shadow version 2.15.3
ok, thanks! will check hmm, but the same thing was with SVG
maybe I should try removing all type annotations
hmm, yes, seems to