This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-12
Channels
- # announcements (2)
- # aws-lambda (2)
- # beginners (402)
- # berlin (2)
- # calva (21)
- # cider (8)
- # clj-kondo (31)
- # cljdoc (1)
- # cljsrn (42)
- # clojure (43)
- # clojure-berlin (2)
- # clojure-dev (21)
- # clojure-europe (4)
- # clojure-hamburg (1)
- # clojure-italy (37)
- # clojure-nl (7)
- # clojure-spec (50)
- # clojure-uk (121)
- # clojurescript (46)
- # component (49)
- # data-science (1)
- # datomic (60)
- # emacs (29)
- # fulcro (43)
- # hoplon (5)
- # jackdaw (7)
- # joker (19)
- # luminus (5)
- # off-topic (28)
- # om (2)
- # re-frame (27)
- # reitit (7)
- # remote-jobs (15)
- # rewrite-clj (17)
- # shadow-cljs (95)
- # spacemacs (34)
- # sql (9)
- # tools-deps (17)
- # xtdb (70)
I couldn't find anything on this on the ClojureScript JIRA, so opened a ticket. https://clojure.atlassian.net/browse/CLJS-3101
Maybe structure is the wrong word. I'm working on an application that has scaled a bit out of control, mostly because we don't have any clear pattern within the project. Is it common to use a MVC model or would you advice me to look into something else? @roman01la
@olle142 I’d suggest to use re-frame and follow its patterns. It works pretty good for large scale apps.
any help on this problem will be really appreciated, https://stackoverflow.com/questions/56562017/unknown-named-module-xmlhttprequest-in-clojurescript-react-native-project-usin
hey sorry, I know this question gets asked all the time and I, personally, have definitely asked before... but..
does anyone know offhand how to intern/ re-export vars from different namespaces in cljs?
I want everything to be useable from components.<component name>
where as now they are split into various components.<component module>.<component name>
locations
Put them into a single namespace. There’s little benefit to have ns per component.
what's a good thing for running cljs tests? last I heard people were using lein-doo
but that was like two years ago
https://www.surveymonkey.com/results/SM-S9JVNXNQV/ Q24 might be useful to you
also see the comments for more options
thanks both!
shadow-cljs has a :browser-test
target (for running in the browser with a GUI) and a :karma
target for running browser tests in CI
@gfredericks The doo
test framework relies on phantomjs
, which is no longer supported. I've just switched everything over to using figwheel-main
for tests with chrome --headless
. Works very well.
i really liked using https://github.com/bhauman/cljs-test-display in a tab adjacent to the app. The favicon and expandable results made constant rerunning of tests fantastic while devleoping
ah nice. and extra mains is where its at. I really liked that at my last job having three tabs open: app | devcards | tests. Make any tests pass that I wanted. Make the devcard work, then wire up the real data fetches rather than injected the fake data and you're done. It felt really good
That sounds like a really nice setup @dpsutton! Do you happen to have any opensource examples?
that one was proprietary (also they are hiring, info in #jobs) but it was the inspiration for figwheel-main's extra mains features. so you have three entrypoints. So the open source example is to just take advantage of that feature of figwheel main
Ahh cool, I’ll need to dive deeper into figwheel main. Currently working still with the good old’ lein figwheel.
yeah we hooked it in there but @bhauman made it first class and quite convenient in figwheel main
seems like shadow-cljs is binding to the 172. address from docker instead of the desired wifi interface - does anyone know if that's configurable? it worked when i took all the interfaces down except local and wifi
or maybe not binding , but building code that tries to connect to that address
with the docker if's up, my expo app crashes with
"failed to connect to /172.18.0.1 (port 9630)
@chrisjswanson its a bit ugly but currently you can configure if via the :local-ip "123.123.123.123"
in your build config
right on let me give that a try, it would be great if that's all it takes
thanks
@thheller in shadow-cljs.edn ?
i added the line, but as soon as i rebuild the error still comes back
oh i see
yes you're 100% correct this solves the problem. thank you so much :thumbsup:
you can also set it via the command line if needed shadow-cljs watch foo --config-merge '{:local-ip ...}'
@gfredericks I’m using Kaocha for https://github.com/nwjsmith/generators.graph (both CLJ and CLJS)