This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-24
Channels
- # arachne (1)
- # bangalore-clj (11)
- # beginners (177)
- # boot (63)
- # business (1)
- # cljsjs (21)
- # cljsrn (3)
- # clojars (4)
- # clojure (116)
- # clojure-art (4)
- # clojure-belgium (3)
- # clojure-india (1)
- # clojure-italy (6)
- # clojure-russia (14)
- # clojure-spec (8)
- # clojure-uk (67)
- # clojurescript (51)
- # community-development (5)
- # cursive (13)
- # datascript (14)
- # datomic (29)
- # devcards (3)
- # emacs (3)
- # events (3)
- # funcool (4)
- # hoplon (29)
- # mount (6)
- # om (34)
- # om-next (5)
- # onyx (16)
- # perun (8)
- # planck (22)
- # re-frame (13)
- # reagent (5)
- # ring-swagger (21)
- # rum (3)
- # spacemacs (3)
- # specter (1)
- # untangled (39)
hah, just managed to get Om Next working with JS modules for React & ReactDOM with :advanced
optimizations
JS modules means dead code elimination?
dead code elimination in React, yes
means React and ReactDOM are not included as foreign libs anymore
but instead consumable via Google Closure
pushing my branch in a few if you're curious
yeah, definitely, sounds exciting
so the "Components, Identity and Normalization" tutorial becomes 121KB gzipped
hrm actually not much gain there, it's 126KB gzipped with the current state of things
Hmm, what reason could there be that the :action callback of mutate gets a different state then the mutate function?
(defmethod mutate 'app/expand-gist
[{:keys [state]} _ {:keys [id]}]
(print (get-in @state [:gist/id id :gist/expanded])) ;; => true
{:action (fn []
(print (get-in @state [:gist/id id :gist/expanded])) ;; => nil
(swap! state update-in [:gist/id id :gist/expanded] not))})
Hmm maybe the re-read overwrites in the merge function. That's probably it, because it worked earlier (before adding a re-read I think)
Just curious, why does om use both boot and lein?
because I like Boot better, and I prefer to run Om's tests in Boot
no special reason other than that
it allows to watch for file changes and automatically run the tests on save, which I don't know how to do with lein
David doesn't even use Lein, though
there's a pom.xml
as well there 🙂
does one need to be authoritative to push to clojars?
you need to be in the clojars group for the repository
just wondering if one will be more reliable, for reference
i know nothing about boot, i never experienced enough problems with lein to give it much chance
maybe im missing out
i noticed for example, you bumped the clojure dependency in boot but not in project.clj
doesn't matter
anyway, the Boot script isn't used to push to clojars
the Clojure dependency is declared as provided
in any case, so downstream applications need to declare it
just curious more than anything, in my projects i tend to be OCD and look for a definitive 'right' way, i'd be uneasy about mixing build tools and the headaches it could cause
you clearly understand all that it entails much more than i do, my uneasy feeling probably comes from a narrow understanding of how everything fits together
@danielstockton the boot script is just there for convenience
Om will build the same if we delete it