This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-28
Channels
- # announcements (1)
- # babashka (9)
- # beginners (82)
- # calva (6)
- # cider (3)
- # clj-kondo (69)
- # cljdoc (4)
- # cljs-dev (10)
- # cljsrn (2)
- # clojure (74)
- # clojure-europe (11)
- # clojure-italy (9)
- # clojure-nl (15)
- # clojure-spec (18)
- # clojure-uk (89)
- # code-reviews (8)
- # core-async (42)
- # cursive (22)
- # datomic (26)
- # fulcro (13)
- # graalvm (33)
- # graphql (1)
- # leiningen (20)
- # malli (19)
- # music (1)
- # off-topic (4)
- # pathom (56)
- # re-frame (3)
- # reitit (26)
- # shadow-cljs (40)
- # spacemacs (5)
- # tools-deps (25)
@ikitommi As morning chore I made a Makefile
for Malli 😛 mainly meant to replace the bin/kaocha
and to make sure deps are installed. Since no one even asked for this, should I push this out or just keep to myself?
@ikitommi So I made a PR of this anyway, feel free to reject it if you disagree with my reasoning :)
There are smarter on Metosin like @U1NDXLDUG doing our OS tooling stuff, looking forward to comments too.
You can do stuff like bin/kaocha --watch
and bin/kaocha --focus test-symbol
and stuff like that
That said, I wouldn't be against something like make test
which would install the npm deps and then run the tests with bin/kaocha
I'm honestly not feeling very positive about your PR, but I'll try to review it at some point.
@rschmukler Merged the interceptor-branch, thanks! Wanted to test myself if/how that works and re-formatted the code: https://github.com/metosin/malli/pull/124/files?w=1
(is (= [24 48 8 10]
(m/decode
[:tuple
{:decode/string (constantly {:enter (partial mapv inc), :leave (partial mapv (partial * 2))})}
[int? {:decode/string (constantly {:enter (partial + 2), :leave (partial * 3)})}]
[int? {:decode/string (constantly {:enter (partial + 3), :leave (partial * 4)})}]]
[1 2 3 4] mt/string-transformer)))
@ikitommi Woo! Looks great 🍻
I was just recently thinking that there are probably some interesting behaviors we should add for multi schemas. Eg. should we have a :dispatch/leave
option? and then assume :dispatch
and :dispatch/enter
to be the same?