Fork me on GitHub
#re-frame
<
2016-02-10
>
josh.freckleton03:02:41

@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 externs 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 simple_smile

hkjels08:02:13

@josh.freckleton: The most famous javascript-libraries are available through clojars: https://clojars.org/search?q=cljsjs

hkjels08:02:06

Using those or foreign-libs will allow for dead-code removal, so it’s definitely recommended

martinklepsch08:02:18

@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

hkjels08:02:35

@martinklepsch: So they are left as is, even though the compiler is set to advanced?

hkjels08:02:15

I’m pretty sure I’ve read the opposite, but I may be misinformed as I haven’t tested it myself

martinklepsch08:02:54

The library code is never optimized. That's why foreign libs have a file and file-min key (check docs)

jaen10:02:49

What Martin said; externs are needed so the references in your code are not renamed in a way that will break the code.

jaen10:02:10

The :foreign-libs are not optimised in any manner.

jaen10:02:16

Hence the option to provide alternative, optimised versions of libraries with the :file-min key

martinklepsch14:02:10

does anyone know of a queuing/dispatch thing as it exists in re-frame that's not tied to a react lib?

jaen14:02:27

I think there's a fork of re-frame that's not tied to reagent

jaen14:02:43

https://github.com/krisajenkins/petrol this also doesn't seem to require react

martinklepsch14:02:58

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 simple_smile

shaun-mahood15:02:07

@martinklepsch: Out of curiosity, what are you trying to do with it?

martinklepsch15:02:20

@shaun-mahood: use it in an om project

martinklepsch15:02:00

@shaun-mahood: the project currently uses some flux implementation that I think isn't that great

shaun-mahood15:02:36

Time to build re-om?

martinklepsch15:02:51

It's not a queue and you are supposed to have multiple dispatchers that may be busy

martinklepsch15:02:23

there's not much of om left in re-om 😛

martinklepsch15:02:35

more like reeeeeeeeeeeeeeee-om I guess 😄

shaun-mahood15:02:51

It looks like Zelkova works with om, not sure if that's close enough

jaen15:02:20

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).