This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # aws (7)
- # bangalore-clj (2)
- # beginners (64)
- # boot (34)
- # cider (1)
- # cljs-dev (8)
- # cljsrn (22)
- # clojure (268)
- # clojure-greece (2)
- # clojure-italy (8)
- # clojure-quebec (1)
- # clojure-russia (5)
- # clojure-spec (7)
- # clojurescript (7)
- # consulting (1)
- # cursive (184)
- # data-science (1)
- # datascript (18)
- # datomic (54)
- # dirac (1)
- # emacs (17)
- # graphql (1)
- # klipse (2)
- # leiningen (1)
- # off-topic (17)
- # onyx (10)
- # pedestal (2)
- # reagent (16)
- # spacemacs (4)
- # untangled (3)
- # vim (28)
- # yada (3)
@carocad Not sure. They're not really global-vars. It's more about parameters to set on compile time.
Did anyone manage to use
closure-defines with re-natal (when running
lein figwheel android)? I can't seem to manage, following https://www.martinklepsch.org/posts/parameterizing-clojurescript-builds.html and https://github.com/drapanjanas/re-natal/issues/46 .
@seantempesta Great! So to be clear, I can switch tabs by
dispatching to a reframe handler?
@vikeri did you get
closure-defines to work? (About a year ago, you didn't 🙂 )
> vikeri: Is there something special with :closure-defines in regard to re-natal? Can’t get it to work...
right... cljsrn and boot works well? (I usually don't use lein, but I did for my first cljsrn project)
@kurt-o-sys Unfortunately brn reloading does not work with newer version of RN. So I’ve hacked together a mix of brn and re-natal (using the figwheel setup from re-natal but everything else from boot). Exactly I set them in
But since boot-figwheel is not part of the fileset it won’t pick up those changes. So I had to write this helper macro
It pretty sweet to have access to the variables both in clj (eg. macro) and cljs land.
@vikeri Got it working, a little bit different, but still, it looks ok to me (deciding on build time which config to use):
$ CONFIG=$(cat config/dev.edn) lein figwheel android
Fairly simple and easy to read - well the
CONFIG environment varialble is actually
MYAPP_CONFIG. Thx again.
... and in my code:
(env/def MYAPP_CONFIG nil) and something like
(configure (cljs.reader/read-string FLEEMAN_CONFIG))