This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-07-16
Channels
- # admin-announcements (5)
- # announcements (2)
- # beginners (2)
- # boot (3)
- # cider (54)
- # clojure (196)
- # clojure-berlin (16)
- # clojure-brasil (4)
- # clojure-dev (36)
- # clojure-italy (3)
- # clojure-japan (9)
- # clojure-korea (3)
- # clojure-russia (18)
- # clojure-uk (24)
- # clojurebridge (11)
- # clojurescript (414)
- # code-reviews (1)
- # core-typed (4)
- # datomic (59)
- # editors (30)
- # euroclojure (2)
- # events (1)
- # jobs (2)
- # ldnclj (16)
- # liberator (11)
- # off-topic (59)
- # om (16)
- # onyx (33)
- # reagent (53)
- # thejaloniki (2)
- # yada (1)
Good morning.
moaning
@thomas yes : i've just been working on a lib for message encoding/decoding/validation which is shared between the cljs ui and clj backend
the only difficulty i had was with expectations tests... the lein-expectations plugin didn't seem to recognise tests in .cljc files, so i had to separate out .cljs and .clj test files which were basically identical... this looks to be a problem with lein-expectations though
so where should I put my cljc file? so that it will get picked up by both my clj and cljs code?
Hello.
thomas: you can have a merged source-tree of clj, cljs and cljc files : have a look at : https://github.com/funcool/cats/
thanks @mccraigmccraig I'll have a look at that
thomas: there are also examples in cats of how to do macros for cljs consumption in the same cljc file as the non-macro code : https://github.com/funcool/cats/blob/master/src/cats/core.cljc#L41
I know it’s a long way off and not a Clojure specific conf, but is anyone planning to go to QCon 2016 in London in March? I’m thinking of booking before Sept.
I've ported bidi to cljc (in a branch) but can't figure out how to get the cljs tests to pass - hoping someone will figure out cljc+ cljs testing so I can copy 😞
but if anyone can point me to anything, i'd be really grateful
malcolmsparks: cats (url above) has tests working from cljs : "lein cljsbuild test" ... i copied their approach to my repo straightforwardly