This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-12-18
Channels
- # adventofcode (12)
- # asami (2)
- # babashka (95)
- # beginners (17)
- # biff (5)
- # calva (1)
- # clojure (90)
- # clojure-europe (15)
- # clojure-nl (1)
- # clojure-norway (8)
- # clojure-uk (6)
- # clojuredesign-podcast (2)
- # clojurescript (34)
- # clr (1)
- # community-development (42)
- # cursive (11)
- # data-science (1)
- # datomic (13)
- # graalvm (5)
- # hoplon (2)
- # hyperfiddle (32)
- # off-topic (1)
- # pathom (6)
- # releases (1)
- # shadow-cljs (25)
- # squint (4)
- # xtdb (10)
Is there an easy way to use a local shadow-cljs (e.g. in deps.edn {:local/root "../shadow-cljs"}
)? Trying that, and using shadow as a library (i.e. using shadow.cljs.devtools.api
directly errors with
Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:476).
com.google.javascript.jscomp.ShadowCompiler
…I haven’t dug any further, thought I’d just check if it was at least easily possible first.there are some required java classes, so you need to run lein javac
in the shadow-cljs project first
Ah, easy enough 🙂 That works for what I was trying to do, which was really just to poke around inside shadow-cljs to get a sense of how it works.
Hey, is there a way to fail the build based on some custom logic? maybe using :build-hooks? Thanks 🙏
I want to write some script, that reads the code and based on some rules i want to failure the build (some internal logic)
the effect is mostly that there is a script that runs in a ci and i don’t want the build to finish in case something happens (will force the developer to fix)
that is still and extremely vague description of the error condition. what does "reads the code" mean?
i’ll try to simplify the use case, let’s say i want to force that every “def” starts with a capital letter, in case there is one def that doesn’t start with a capital letter i want to fail the build (the real use case is more complex ofc..)