This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-12-05
Channels
- # admin-announcements (8)
- # beginners (73)
- # boot (14)
- # cljsrn (4)
- # clojure (157)
- # clojure-indonesia (1)
- # clojure-poland (1)
- # clojure-russia (3)
- # clojurecup (32)
- # clojurescript (123)
- # clojurex (4)
- # core-async (8)
- # cursive (7)
- # datavis (26)
- # datomic (5)
- # hoplon (2)
- # off-topic (3)
- # om (41)
- # portland-or (6)
- # random (1)
- # re-frame (11)
- # slack-help (3)
- # specter (1)
@dnolen: I don’t think so - perhaps your REPL run config is set to compile before run? What sort of stuff ends up in there, copied resources and the like?
Yes. Doesn't happen when I manually run the scripts with java and classpath. Only via Cursive
@dnolen: Ok, check your run config, if it has Make as a before-run task, remove that and see if it helps.
if you can improve the UX for noobs when creating REPL run tasks that would be amazing
but I can’t think of single time this is the desired behavior unless I’m building something
Yeah, the issue is that in a Java project you’re always building something, so I really shouldn’t extend the Java configs.
@marvotron: Yeah, I’d like to make those run configs much easier by default.
The problem is I always put it off because the API behind it fills me with even less joy than the dialog.
You know, I actually don’t mind it that much, with occasional exceptions, and JTable is right up there.
Hi...is it correct when (type var) where var is a boolean returns: #<function Boolean() { [native code] }>?
@niwinz: is that with 2.5.0-SNAPSHOT or even with 2.4.2?
@niwinz: cool, then 2.5.0-SNAPSHOT should be even faster
Hi, I just updated clojurescript and figwheel in my project and when loading my namespace I get this error: goog.require could not find: goog.testing.watchers Anyone knows what its about?
Hi! A newbie question: what is the least complicated way to setup tests in cljs? Don't matter if the output is displayed in the browser console or in the terminal. Preferably I'd like a solution that doesn't depend on phantom js. I only find examples using phantom, and while that works I feel I don't want to rely on having phantom installed.
I've used this and seemed pretty cool - https://github.com/boot-cljs-test/testem-runner
I somehow am really concerned about the split that boot might cause between leiningen and boot and the availability of plugins / templates / boot scripts
I think doo is quite popular for lein - https://github.com/bensu/doo - but can't tell you if it's good or bad, since I never used it.
took a look at that as well, but haven't tried it yet. trying to get by with as few external dependencies as possible, but that seems quite hard
the one thing doo
adds on top of that is the watch, compile, run-tests loop for faster feedback
ah great, thanks! will give node a try first, and probably have a look at doo later in the project
@bensu: I think boot-cljs-test
is a different lib from testem-runner
if I'm not mistaken.
@jaen ahh I see. the names are quite unfortunate. boot-cljs-test
is a boot library that wraps doo
and boot-cljs-test/testem-runner
is completely unrelated
ok, just setup the tests using doo with node, works like a charm! thanks for all your help, and great tool @bensu.
Anyone know what the most idiomatic clojure way to transfom a keyword :tl
into a vector of keywords [:t :l]
would be?
@jaen that's perfect! Thanks!
I was missing the name
function for the keyword, I tried str
but got back ":tl"
vs "tl"
Is there a good way to use SASS with hot code reloading in ClojureScript? I've gotten spoiled by webpack :)
@adamtrilling: I haven’t tried it myself, but I’ve heard of people using middleman via jRuby
@adamtrilling. with boot, i’ve successfully used boot-sass
. tenzing is a lein template for generating a boot project. it includes a +sass option and works out of the box. https://github.com/martinklepsch/tenzing
with lein and figwheel, i’ve successfully used the process described here, which uses stuartsierra/component and the native ruby process. looks like you could also use sassc
or any other shell process. https://github.com/bhauman/lein-figwheel/wiki/SASS-watcher
@adamtrilling: I've been using middleman as mentioned with - https://github.com/jgdavey/boot-middleman - it's a pretty good experience (now that the dependencies issues is fixed and you don't have to hack it).
Looks like I need to look into boot...i only know leinengen. Thanks everyone!
@adamtrilling: fwiw, I usually write scripts that watch sass/less stuff for me (using npm packages and what not), re-compiles then on changes, and then stages them to where lein-figwheel serves them
@adamtrilling: https://gist.github.com/verma/b025b15bcf2edc0b9538 I set this up a while back and it hasn’t failed me, if I were to do this again I’d probably go with what everyone’s suggesting here
@verma that's sorta what I was looking to do at first. I wanted to set up cljsbuild to output to a file and have webpack watch that file and my stylesheets and build everything. But you miss out on a lot of cljs tooling when you do that
The boot-based stuff above looks a lot more idiomatic
@adamtrilling: For Lein you can use e.g. https://github.com/Deraen/lein-sass4clj (it is equivalent to boot-sass)
I remember sassc being fairly problematic when I tried to switch to it in Ruby, because it didn't support everything Ruby sass did.
@juhoteperi that looks like what I was looking for...I'm surprised it didn't come up in my googling.
I'm not using Sass myself currently so I don't know the difference between libsass and ruby sass
But libsass looks like official project so I would think it works quite well
The benefit of using libsass is that the performance should be much better (it's really was when compared to less4j)
It's kinda like with Ruby. Ruby sass is the official "spec", whatever it does is the right behaviour.
But if you're not doing things that don't work well with libsass then probably is worth it, due to the speed gain.
You'd have to check the issues list and see if there's something show-stopping for you there.
boot-middleman
has the upside of being the Ruby sass so it's more-or-less working like if you were using it from Rails or something.
That said, it's been about a year and a half since I tried that, it might be better now.
Yeah I will have to look into whether I actually need the Ruby SASS compiler. I already have a ruby dev environment on my machine so having Ruby dependencies doesn't really bother me
You'd have to see if compass is working for example, last time I tried it didn't, because it used the ability of sass to be extended from Ruby, which libsass lacks.
And you don't really get Ruby dependencies from using boot-middleman
to be clear - it's using bundled jRuby and gems are put in .gems
directory in your project.
Interesting. I haven't used jRuby before and I didn't realize it was embeddable like that. I have used middleman in production though...it's pretty slick.
@donmullen: I don't think that would include Ruby extensions though. I mean, I prefer bourbon over compass, but it's a thing to keep in mind none the less.