Fork me on GitHub
#clojurescript
<
2016-06-14
>
henriklundahl00:06:54

@dnolen @rohit I got most of it working now. I think the problems were related to that intermediate files from the compilation process were left behind. When using lein-doo those files apparently end up in the out folder (instead of target) which wasn't in my :clean-targets. There might have been other problems too. The only thing that still doesn't appear to be working is overriding deps.cljs to use the non-minified JS file. I'll dig more into that tomorrow. Thanks!

kauko06:06:20

@dnolen: Alright. Should I report this somewhere then or just let it be? Sorry, not really familiar with the process.

rauh09:06:19

Now also prints (and logs) file sizes for production builds (raw, gzipped, brotli compressed). Needs a local server that does the compression job.

rauh09:06:22

Fun fact: Lean login page: Rum, bidi, transit: raw: 348kb, gzip: 82kb, brotli: 67.7kb. External (`<script src=react.15.1..>`): 36kb with Brotli

pat11:06:30

I haven't played with brotli yet, thats pretty impressive

vinodgandamalla11:06:07

when i am trying to put the face book login button using following code [:div {:class "fb-login-button", :data-max-rows "1", :data-size "medium", :data-show-faces "false", :data-auto-logout-link "false"}] i am not getting any ouput .can any one help

dominicm12:06:54

@vinodgandamalla: Could you inspect element to confirm the div is being created?

vinodgandamalla12:06:35

@dominicm: yes it is created

dominicm12:06:15

So the issue is probably with facebook button more than cljs. I don't know about the facebook button, could you link to it?

octahedrion13:06:14

is there an example somewhere of using cljs.js/eval which allows expressions to refer to local bindings, like this: (fn [exp y] (cljs.js/eval state `(let [x# ~y] (exp)) ...

octahedrion13:06:47

(something like that...I want exp to be able to refer to y)

vinodgandamalla13:06:45

hi...... For facebook integration which library we have to use?

rauh14:06:00

@vinodgandamalla: Which lib do you use? It should be doable with any of the react libs

rauh14:06:26

But you have to call facebook api manually after you've created the DOM with it, so that FB SDK can do its job

vinodgandamalla14:06:35

@rauh: thank you

dnolen18:06:59

@kauko spend a moment understand the issue then if you see something which seems like a bug report that

dnolen18:06:26

@kauko for example, look at the implementation of the fns, see if the issue is the implementation or it’s just a side effect of how JS regexes work

jonathandale18:06:02

@darwin Do you have any recommendations for writing unit tests for Chromex?

darwin18:06:23

@jonathandale: not really, in Dirac I’m using ChromeDriver to drive a real chrome instance and run tests inside, very hard to do

jonathandale18:06:55

Ok, thanks… that’s the direction I’ve started to head in, but just thought I’d ask.

darwin18:06:33

btw. I implemented a separate helper extension which helps automating the extension I’m testing

darwin18:06:35

and whole thing is complicated by the fact the ChromeDriver uses Chrome Remote Debugger port to drive the chrome instance, I need to use that port myself, so my tests runner takes turns with ChromeDriver to talk to the chrome instance...

jonathandale18:06:17

oh man… sounds complicated!

darwin18:06:02

your situation should be much easier, but still you could be able to reuse some code from here: https://github.com/binaryage/dirac/tree/master/src/test/dirac/test

jonathandale18:06:06

Thanks very much — will look into it.

symbit20:06:51

Is there an equivalent in CLJS to (boolean (Boolean/parseBoolean "true")) => true

aengelberg20:06:24

@symbit (= b "true")?

symbit20:06:17

@aengelberg: Thanks!

wei23:06:32

anyone ever get see this error when compiling?

Exception in thread "main" java.lang.AbstractMethodError: Method cljsbuild/compiler/SourcePaths._find_sources(Ljava/lang/Object;)Ljava/lang/Object; is abstract, compiling:(/tmp/form-init7163359095746530680.clj:1:73)