This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-15
Channels
- # beginners (34)
- # boot (45)
- # cider (16)
- # cljs-dev (20)
- # cljsjs (1)
- # cljsrn (8)
- # clojure (207)
- # clojure-berlin (3)
- # clojure-dev (18)
- # clojure-greece (1)
- # clojure-ireland (1)
- # clojure-italy (9)
- # clojure-russia (20)
- # clojure-spec (27)
- # clojure-uk (19)
- # clojurescript (110)
- # code-reviews (2)
- # cursive (7)
- # data-science (2)
- # datomic (7)
- # devcards (1)
- # emacs (4)
- # graphql (1)
- # hoplon (2)
- # immutant (15)
- # jobs (5)
- # jobs-rus (1)
- # juxt (1)
- # luminus (7)
- # lumo (26)
- # microservices (3)
- # off-topic (27)
- # om (13)
- # onyx (11)
- # pedestal (7)
- # proton (4)
- # re-frame (24)
- # remote-jobs (1)
- # spacemacs (2)
- # specter (2)
- # unrepl (31)
- # untangled (7)
- # vim (14)
@seantempesta do you have an example of using your base navigation namespaces (re-frame here) ?
hey guys, have you ever tried to use hot reloading
+ cljsbuild
for a react native application?
I have been using re-natal + figwheel for development but I have some problems with keeping the state of my components. We have been discussing about it here: https://github.com/drapanjanas/re-natal/issues/58. The point is that apparently hot reloading can already covert most of what figwheel is supposed to achieve.
I am currently using re-natal + figwheel + cursive and their integrations leaves lots to be desired. I was wondering if anybody has already tried making cljsbuild work with hot reloading and cursive (or similar) 🙂 ?
@carocad haven't tried it but would be curious
@pesterhazy I haven’t tried yet, but outputting to figwheel seems optimal for me
@pesterhazy please correct me if I am wrong (since this seems too easy to be true) but according to my experiments, this two function calls are all that is needed to get a production build or a cljs repl (using vanilla repl - no plugin, leiningen, etc)
(require 'cljs.repl)
(require 'cljs.build.api)
(require 'cljs.repl.node)
(cljs.build.api/build "src"
{:output-to "index.android.js"
:optimizations :simple})
(cljs.repl/repl (cljs.repl.node/repl-env)
:watch "src"
:output-to "index.android.js"
:output-dir "target/android")
;:main "env.android.main")