This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-30
Channels
- # babashka (1)
- # beginners (86)
- # boot (5)
- # calva (21)
- # cider (26)
- # clj-kondo (10)
- # cljs-dev (5)
- # cljsrn (3)
- # clojure (181)
- # clojure-europe (22)
- # clojure-germany (11)
- # clojure-italy (3)
- # clojure-nl (7)
- # clojure-spec (6)
- # clojure-sweden (6)
- # clojure-uk (65)
- # clojuredesign-podcast (1)
- # clojurescript (71)
- # core-logic (2)
- # cryogen (15)
- # data-science (9)
- # datomic (7)
- # duct (4)
- # emacs (4)
- # events (1)
- # exercism (1)
- # fulcro (136)
- # funcool (1)
- # joker (6)
- # kaocha (3)
- # lambdaisland (28)
- # lumo (3)
- # malli (5)
- # mount (1)
- # off-topic (13)
- # re-frame (14)
- # ring (10)
- # shadow-cljs (20)
- # sql (5)
- # tools-deps (5)
- # tree-sitter (1)
- # uncomplicate (9)
hello, I know that import { Card } from 'antd';
-> ["antd" :refer (Card)]
but const { Meta } = Card;
?
Anyone have any idea why I’m not able to access my namespaces in my CIDER nrepl session into my shadow-cljs project ?
how would one set some code from the http-server that is "injected" into my cljs-code? in my case I want to set an url to a server depending on which server my cljs-code is running from. like so:
server hosting cljs rest api server
localhost localhost:1234
right now I use ring and just serve static files. was thinking that maybe one could modify something in the files when ring sends the static files
now that I think about it, maybe this is a question for the server, not shadow-cljs... 🙂
is it possible to add more release-"variants"? so that I could do: shadow-cljs dev-release app
and keep the server-config in :closure-defines
?
@saikyun what I recommend is passing this stuff via HTML. so you call <script>your.app.init("the-server-url");</script>
in your HTML and (ns
in your code
I am developping a node-js script and it compiles to a single file. Is there a way to also compile all the dependencies from npm into that single file?
(hello everyone)
@neo2551 i think thheller mentioned ncc the other day: https://github.com/zeit/ncc -- does that look relevant?
I will try. Seems quite good. Thanks.
Is there a way to run shadow/node-repl
with :reader-features #{:node}
? (i.e. without attaching to a specific build and with a “built in” runtime as node-repl
provides)
@martinklepsch you can try via (shadow/node-repl {:config-merge [{:compiler-options {:reader-features #{:node}}]})
@thheller that actually worked, great!