This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-10
Channels
- # aatree (4)
- # admin-announcements (1)
- # beginners (62)
- # boot (279)
- # business (14)
- # cider (1)
- # cljsrn (3)
- # clojure (88)
- # clojure-czech (3)
- # clojure-madison (2)
- # clojure-poland (117)
- # clojure-russia (74)
- # clojurescript (168)
- # core-async (8)
- # css (6)
- # datavis (39)
- # datomic (67)
- # devcards (2)
- # dirac (1)
- # editors (9)
- # emacs (13)
- # events (2)
- # hoplon (2)
- # jobs (9)
- # ldnclj (38)
- # lein-figwheel (9)
- # leiningen (7)
- # luminus (4)
- # off-topic (77)
- # om (114)
- # omnext (1)
- # onyx (221)
- # parinfer (10)
- # portland-or (5)
- # proton (3)
- # re-frame (24)
- # reagent (14)
- # ring-swagger (13)
@mangr3n: I just had a chance to play with the suggestions you gave. Wow, that's simpler than what I had going. I had read everywhere that I need to bower install
libraries, make my own extern
s for them, browserify
them, compile them down, require
them in obscure ways, and then wave a wand to get it to work.
Per your suggestions, I just included the css
+ js
for bootstrap straight from the CDN, and everything just works now. That's the way I should have done it all along.
Live and learn
@josh.freckleton: The most famous javascript-libraries are available through clojars: https://clojars.org/search?q=cljsjs
Using those or foreign-libs will allow for dead-code removal, so it’s definitely recommended
@hkjels: foreign libs are never optimized. Using foreign libraries with externs (CLJSJS libs for instance) however will allow you to do the biggest possible optimization without corrupting your build @josh.freckleton
@martinklepsch: So they are left as is, even though the compiler is set to advanced
?
I’m pretty sure I’ve read the opposite, but I may be misinformed as I haven’t tested it myself
The library code is never optimized. That's why foreign libs have a file and file-min key (check docs)
What Martin said; externs are needed so the references in your code are not renamed in a way that will break the code.
Hence the option to provide alternative, optimised versions of libraries with the :file-min
key
does anyone know of a queuing/dispatch thing as it exists in re-frame that's not tied to a react lib?
https://github.com/krisajenkins/petrol this also doesn't seem to require react
basically I'm looking for this namespace without it being tied into reagent: https://github.com/Day8/re-frame/blob/master/src/re_frame/router.cljs
@martinklepsch: Out of curiosity, what are you trying to do with it?
@shaun-mahood: use it in an om project
@shaun-mahood: the project currently uses some flux implementation that I think isn't that great
Time to build re-om?
It's not a queue and you are supposed to have multiple dispatchers that may be busy
there's not much of om left in re-om 😛
more like reeeeeeeeeeeeeeee-om I guess 😄
It looks like Zelkova works with om, not sure if that's close enough
Well, from what I understand of pure-frame's rationale "multiple dispatchers" was the exact reason it was created (re-frame allows only one), but there seems to be a bit of reagent left there to deal with animation frames, so maybe it won't fit your use case (though advanced opts would probably deal with that).