Fork me on GitHub

someone using lein doo here? There is some way to separate build from execution? I want to lein doo build -> target on clojure docker than phantomjs run target/doo.js in another docker


Was mucking around testing some ways to update a map in a loop.. Pretty interesting:


need a better test i think. .advanced optimization is reducing it down to the answer 😆


Does anyone happen to know a password protect a file solution that works on the browser?


I'm packaging a library,, for cljsjs. To do that, can I use the provided UMD build? Webpack can have different libraryTargets: var and umd - are both usable as a basis for cljsjs packages?


got it to work with libraryTarget: "var"


Is there anything in Google Closure to reliably detect a mobile device?


goog.userAgent.MOBILE did the trick


such a treasure trove of goodies in that library


Hello, I'm trying to use :npm-deps feature, and I get now

process is not defined
, I think that I need to set NODE_ENV, but how to do it? Does anybody knows?


Hello all


@osmirnov the workaround is to create a process.env namespace in your project with a goog-define for NODE_ENV


I’m working on a library that’s intended to make it easy to capture data from a running app, and then load that data into tests. I’m trying to make this work with cljs now. Is there a straightforward way to load data from a resource directory in my cljs unit tests, ideally one that would also allow loading example data into a figwheel repl? I can think of multiple ways to do it but would appreciate advice from people who use cljs more and are more familiar with the limitations / idioms of the js ecosystem.


right now I’m dumping the data by creating an anchor with a data url and generating a click event so the browser downloads the encoded data


what are good resources to learn cljs? what are prerequisites ? do i need to be proficient in JS before trying cljs or something like that?


@lepistane: Definitely don't need to be proficient in JS. There are some good resources at as well as the rest of that site, though some parts can be pretty hard to understand depending on your current knowledge. The #beginners channel here is also very good for specific questions as you get started, lots of helpful people on there ready to help. Have you got much programming experience (in Clojure or other languages)?


@lepistane: A lot of the books at also have ClojureScript specific content as well.


@shaun-mahood second year of cs university made 2 websites with wordpress 1 webforum java servlets backend, jquery,html,boostrap,css frontend played around with clj - had to read SICP since i had no experience in functional programming and no book/resoureces offers that in clojure have upcoming project with spring on backend, wanted to learn cljs and use it as frontend so i am asking for resources thank you for links would you say this is enough knowledge to get started?


@lepistane: I definitely think that is enough to get started! I found re-frame to be a really good way to get started with CLJS and the docs and #re-frame channel are both excellent for support.


There are a lot of other good options as well that provide similar functionality as well - is a good site to browse for options across the whole ecosystem.


thank you very much


@lepistane: My pleasure! I hope you have a lot of fun on your project, definitely ask lots of question as you get stuck.


I just cut org.clojure/google-closure-library and org.clojure/google-closure-library-third-party version 0.0-20170519-fa0499ef, might want to take that for a spin