Fork me on GitHub
#clojurescript
<
2016-03-10
>
grounded_sage02:03:55

Is there a way to play with a library on the phone?

echristopherson04:03:21

@grounded_sage: such as?

grounded_sage05:03:58

Was thinking like Replete or something online that can pull in libraries to fiddle with things

mfikes05:03:28

@grounded_sage: Unfortunately, Replete is not allowed to load code. 😞

grounded_sage07:03:07

Yea I had a feeling that would be the case. Was mostly hoping for a in browser solution. Would be great to be able to play with libraries in the browser. Like the Cljs / Cljc? (Can't remember acronym) libraries.

inhortte19:03:44

I'm trying to write a websocket client / server using httpkit. The client side is using goog.net.WebSocket. Has anyone run into the following problem using httpkit? Chrome: WebSocket connection to '<ws://localhost:3871/ws>' failed: Invalid frame header Firefox: The connection to <ws://localhost:3871/ws> was interrupted while the page was loading. this.webSocket_ = new WebSocket(this.url_); Thanks...

base69821:03:49

I'm trying to do a figwheel project, rather retrofit an old project and I can't get it to see the index.html. It was in resources/public, but I moved it out to the root. It doesn't seem to see it in the root directory. Ideas?

base69822:03:23

Actually, the quickstart doesn't sseem to work either, I swear I had this working recently

anmonteiro22:03:44

@base698: try localhost:port/index.html

anmonteiro22:03:00

after it's in resources/public again

base69822:03:28

@anmonteiro: Finds the html, but not js files.

base69822:03:53

:output-to "resources/public/main.js" ;; should i do this?

base69822:03:28

hrm, got this too : rror: cannot resolve environ.leiningen.hooks/activate hook

anmonteiro22:03:53

@base698: output to somewhere in public, maybe also specify asset-path

base69822:03:17

yeah can't find deps now

base69822:03:39

:asset-path "js/out"

base69822:03:49

the compiles files show up in resources/public/js/out

base69822:03:08

did the behavior of all this just change?

base69822:03:23

like in the past two days?

base69822:03:31

it all loaded

spinningtopsofdoom22:03:45

Try something like :output-dir "/path/you/want/js" and :asset-path "/js"

spinningtopsofdoom22:03:58

:output-dir tells ClojureScript what directory to use for temp files (e.g. js files, source maps, cache files) and :asset-path translates from the url path to the server path (e.g. -> ./resources/public/js)

jrheard23:03:26

do i need to do something special in order to get source maps working with figwheel? i've read https://github.com/clojure/clojurescript/wiki/Source-maps, i have :source-map true in my relevant build's config, and each of my compiled .js files has a good-looking comment at the bottom (like eg //# sourceMappingURL=attack.js.map?rel=1457654023631 ). when i go to the file specified by that comment, i see some json that looks like it could be a source map

jrheard23:03:50

but if i put an (assert false) in my code, i see js, not cljs

jrheard23:03:00

i figure i must be dong something wrong

jrheard23:03:06

i've got "enable javascript source maps" checked in my chrome devtools settings