Fork me on GitHub
#clojurescript
<
2016-04-06
>
rahulpilani05:04:46

Anyone here using figwheel with a traditional java app?

rahulpilani05:04:19

I seem to have setup everything right, and see my browser connecting, and can query state from the repl..

rahulpilani05:04:27

but live-reload is still elusive..

raphael08:04:07

hello, is reify return an anonymous record or an anonymous type?

raphael08:04:43

defrecord implements {cljs.core.IRecord} * @implements {cljs.user.Fly} * @implements {cljs.core.IEquiv} * @implements {cljs.core.IHash} * @implements {cljs.core.ICollection} * @implements {cljs.core.ICounted} * @implements {cljs.core.ISeqable} * @implements {cljs.core.IMeta} * @implements {cljs.core.ICloneable} * @implements {cljs.core.IPrintWithWriter} * @implements {cljs.core.IIterable} * @implements {cljs.core.IWithMeta} * @implements {cljs.core.IAssociative} * @implements {cljs.core.IMap} * @implements {cljs.core.ILookup}

raphael08:04:27

deftype implements just what the user implements

raphael08:04:57

and reify implements * @implements {cljs.core.IWithMeta} * @implements {cljs.core.IMeta}

cjmurphy10:04:51

hiccup uses keywords such as :script. Can anyone tell me where a list of all these keywords are? I want to translate a very simple html page into hiccup, and I need to find the equivalent of tags such as html, head, meta, link, body and div. Or do I just put a colon at the front of these, nest them properly, and I should be fine?

schmir10:04:20

cjmurphy: the latter

darwin10:04:29

I don’t use hiccup myself, but I just opened github and looked at its sources. There is no such list. Hiccup simply converts the first param which must[0] be keyword, symbol or string (please note that it can have css-style id and classes!) to string[1] and then uses regexp[2] to parse it. [0] https://github.com/weavejester/hiccup/blob/master/src/hiccup/compiler.clj#L60 [1] https://github.com/weavejester/hiccup/blob/master/src/hiccup/compiler.clj#L62 [2] https://github.com/weavejester/hiccup/blob/master/src/hiccup/compiler.clj#L37

darwin10:04:00

Well, I might have used it through reagent or some other library.

tabrez10:04:36

Does anybody know any guide to help add Clojure/Clojurescript code analysers(Kibit, Bikeshed, etc.) to Overcommit? https://github.com/brigade/overcommit

jonathandale14:04:42

Has anyone used Clojurescript to build Chrome Extensions? If so, did you run into any difficulties or things I should look out for?

adamfrey14:04:51

@jonathandale: @darwin is using cljs for chrome extensions

jonathandale14:04:08

@darwin: When using the chromex-sample project, and cljs-ajax I’ve noticed an eval in the compiled source. Seems to come from this: https://github.com/clojure/clojurescript/blob/master/src/main/cljs/cljs/core.cljs#L10394 Wondering if you’ve encountered this also, as I’m a bit wary of adding eval in the extension source.

darwin14:04:54

@jonathandale no, I didn’t see eval in my projects, (I assume you are speaking about :advanced build optimizations)

darwin14:04:39

don’t have time to talk right now, I can definitely help you later

mcgivernsa15:04:06

@jonathandale: I built a simple Chrome extensions with CLJS, it was pretty straightforward - source mapping worked fine too

amacdougall15:04:33

I've got doo almost perfectly set up, but I notice that whenever I change a file, it does the detect/reload/run cycle twice. Anyone have a clue why? (I can totally live with this as long as it works!)

dnolen20:04:48

@ronald (.submit (js/$ “#myForm") (fn [e] …))

ronald21:04:00

@dnolen: Thanks but why js/$? Selecting the Id should be hard. My example already depicts that but thanks for the reply. Sounds like what I wanted. Will test at home.

dnolen21:04:41

@ronald: sorry I missed the (:require [jayq.core :refer [$]])

ronald21:04:12

No worries :) @dnolen thanks for the help .

spinlock21:04:23

does anyone feel like helping a noob figure out how to run a casperjs test from boot?