This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-02
Channels
- # announcements (2)
- # aws (13)
- # beginners (52)
- # boot (10)
- # calva (2)
- # cider (23)
- # clara (23)
- # cljs-dev (16)
- # cljsrn (5)
- # clojure (69)
- # clojure-brasil (1)
- # clojure-conj (3)
- # clojure-dev (41)
- # clojure-india (2)
- # clojure-italy (39)
- # clojure-nl (5)
- # clojure-russia (2)
- # clojure-spec (5)
- # clojure-uk (51)
- # clojurescript (78)
- # code-reviews (13)
- # data-science (2)
- # datascript (22)
- # datomic (47)
- # duct (13)
- # emacs (4)
- # figwheel-main (45)
- # fulcro (85)
- # funcool (4)
- # jobs (9)
- # nrepl (106)
- # off-topic (5)
- # pathom (7)
- # pedestal (2)
- # re-frame (17)
- # reagent (32)
- # reitit (7)
- # ring-swagger (2)
- # shadow-cljs (33)
- # spacemacs (4)
- # specter (2)
- # tools-deps (203)
- # vim (1)
hi, guy, thanks for the fantastic tool,where is the location that I can set binaryaga/devtool confighttps://github.com/binaryage/cljs-devtools/blob/master/docs/configuration.md#configuration-via-compiler-optionsfor project.clj
they use :external-config {
:devtools/config {
:features-to-install [:formatters :hints]
:fn-symbol "F"
:print-config-overrides true}}
@thheller thanks, it's work. should put it somewhere in doc, I try to search for : external-config and can not get any explanation
well its not a thing in CLJS itself. it was basically invented by cljs-devtools I think
You can use yarn update-interactive
to update your javascript dependencies.
You can also use depot
with deps.edn
or lein-ancient
with project.clj
, depending on how you encode your dependencies.
But I think we're all waiting for you to make it for shadow! 🙂
I use ncu
all the time for package.json, the clojure deps tend to update way slower than npm 🙂 well, I could do it, at minimum I hope I planted seeds 😛
Hi, I have a shadow flush build hook that generates static html and css files and writes them to a public directory. I would like the Clojure functions that render the static files to be reloaded on file change, so that implementation changes are picked up and I see the updated html/css on my page. Is there a convenient way to do this in shadow?
Presumably I can do this using the reloaded workflow within clj-run
, and calling watch
and server
within this task? Maybe there's another way?
@thheller I’m getting a strange error that I don’t understand related to macro output. I’ve expanded the macro and when I put that in the file it is fine, but when I use the macro I get an exception in core, but the stack trace doesn’t get me anywhere.
IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Keyword
clojure.lang.RT.seqFrom (RT.java:550)
clojure.lang.RT.seq (RT.java:530)
clojure.core/seq--5124 (core.clj:137)
clojure.core.protocols/seq-reduce (protocols.clj:24)
clojure.core.protocols/fn--7829 (protocols.clj:75)
clojure.core.protocols/fn--7829 (protocols.clj:75)
clojure.core.protocols/fn--7781/G--7776--7794 (protocols.clj:13)
clojure.core/reduce (core.clj:6748)
any hints on how I can get more info from the compiler about what it is working on/seeing?
I’ve had better luck getting meaningful errors by evaluating the namespace the macro lives in in a CLJ REPL, then I have relying on shadow-cljs to report the correct error
the lastest shadow-cljs shows a more complete stack trace, and that pointed out where the problem was
but I don’t believe it is a shadow problem…the bigger stack trace has gotten me unstuck
I found it…my macro was emitting a cons, and the other macro was spec checking it to be a list?
@lsnape there is no built-in support for reloading non build-related CLJ code. I typically recommend developing that in a REPL and just using the usual load-file
from the REPL to reload the code manually
I want to configure 2 cljs builds:
one with dev
and src
, with "base" deps + "devcards" dep
one just with src
, with "base" deps.
How can I write it in shadow-cljs.edn?