This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-21
Channels
- # adventofcode (24)
- # announcements (1)
- # beginners (122)
- # braveandtrue (9)
- # calva (45)
- # cider (24)
- # cljdoc (8)
- # cljs-dev (23)
- # clojure (112)
- # clojure-europe (2)
- # clojure-india (2)
- # clojure-italy (36)
- # clojure-nl (3)
- # clojure-spec (32)
- # clojure-uk (35)
- # clojurescript (52)
- # core-typed (12)
- # cursive (4)
- # datomic (61)
- # emacs (4)
- # figwheel-main (2)
- # fulcro (14)
- # hoplon (5)
- # hyperfiddle (1)
- # jobs-discuss (6)
- # kaocha (5)
- # leiningen (2)
- # nrepl (15)
- # off-topic (62)
- # re-frame (26)
- # reagent (39)
- # ring (3)
- # shadow-cljs (56)
- # spacemacs (8)
- # specter (5)
- # tools-deps (1)
- # yada (2)
sup! when I switched to Lein following the user guide, I noticed I also had to manually include the same clojure/script jars as shadow-cljs in the dependencies did I do something wrong?
Hi, Is there a way to get an env var define in the console (e.g. export URI=http://uri) in the shadow-cljs.edn for compilation ? I use it closure-defines to pass it to cljs code Thanks
May be i could do this with https://shadow-cljs.github.io/docs/UsersGuide.html#clj-run
@ouvasam it is not recommended to use env vars during compilation since that suggests that you actually want to do runtime configuration during compilation
other than that you can use :closure-defines {foo.bar/uri #shadow/env "URI"}
so use env vars in the config
@joao.paulo.silvasouza it is sometimes required to pin clojure/script versions when using lein yes. not doing it wrong as you are otherwise relaying on a bit of randomness when it comes to the deps
Good morning! What is the recommended approach for testing CLJ files with shadow-cljs? (The reason is testing a macro's helper functions)
@aisamu I typically do this with the clj REPL. not actually writing tests just evaling stuff until it looks right
otherwise you can use the clj-run
stuff to call your own main function to run the tests
👋 hi everyone! Has anyone used shadow-cljs to publish something to clojars or do I need to use leiningen for this and dup the shadow-cljs.edn
file -> project.clj
?
@loganpowell publishing with shadow-cljs is not currently supported. project.clj
+ lein
is easier currently IMHO
gotcha
should it be a 1:1 setup for the project.clj
(i.e., can I just copy the shadow.cljs.edn
file)?
I only used lein for like a week before finding shadow-cljs
(I have very little lein experience)
only need to copy your :dependencies
(don't include clojurescript or shadow-cljs itself)
sweet! thank you 🙂 and thank you so much for all your work with shadow
and all your help on Slack
are reader conditionals allowed in shadow? I'm getting an error trying to use them and just want to make sure I'm not barking up the wrong tree
fuck, thank you!
there’s actually some much cooler things shadow-cljs can do with reader conditionals
whoop
Hello folks! question about tooling! So say I am working against a node-script
target
and I do yarn shadow-cljs watch dev
am I also unnecessarily starting the web server machinery?
(I would expect that is started in :browser
targets only
if that's the case I am interested in knowing if I can save some time in startup by contributing some tweak
unless you’re also seeing something like:
shadow-cljs - HTTP server for :workshop available at
in which case I would expect that to not appear if you’re not configured your build to use the dev HTTP server optionswell I do not see it so that's probably already good then
Dec 21, 2018 11:39:24 AM org.xnio.Xnio <clinit>
INFO: XNIO version 3.3.8.Final
Dec 21, 2018 11:39:24 AM org.xnio.nio.NioXnio <clinit>
INFO: XNIO NIO Implementation Version 3.3.8.Final
shadow-cljs - server version: 2.7.9
shadow-cljs - server running at
shadow-cljs - socket REPL running on port 44729
shadow-cljs - nREPL server started on port 45909
shadow-cljs - watching build :repl
opened a PR against shadow but I think I need some help