This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-27
Channels
- # adventofcode (7)
- # announcements (31)
- # babashka (15)
- # beginners (14)
- # calva (45)
- # circleci (6)
- # clojure (27)
- # clojure-europe (19)
- # clojure-france (2)
- # clojure-gamedev (4)
- # clojure-uk (2)
- # clojurescript (26)
- # conjure (14)
- # data-science (6)
- # deps-new (7)
- # depstar (4)
- # emacs (13)
- # events (1)
- # fulcro (20)
- # graalvm (2)
- # hoplon (30)
- # joker (11)
- # london-clojurians (1)
- # malli (26)
- # pathom (2)
- # re-frame (13)
- # reagent (8)
- # reclojure (3)
- # reveal (8)
- # robots (4)
- # shadow-cljs (29)
- # sql (5)
- # tools-deps (28)
- # vim (4)
oh man, I used https://github.com/weavejester/progrock for the first time and it's amazing how nice it is to have a progress bar in my scripts (script is binning picture files into directories by year/month):
$ bin-pics
inspecting 253 files...
253/253 100% [==================================================] ETA: 00:00
copying 221 images...
221/221 100% [==================================================] ETA: 00:00
Hey, I’m trying to build a toy static site generator with bb and hooking up selmer with deps/add-deps but got error “couldn’t resolve symbol thread-bound?” Is there any workaround?
@romantsopin Not all libraries are compatible with babashka. I think your best bet in using selmer is via bootleg as a pod: https://github.com/retrogradeorbit/bootleg#babashka-pod-usage
Yea, I thought it’s quite common, so there should be a simple way :) thank you!
Please do report incompatibilities with clojure, such as the one you have encountered and they may get fixed in the new release
A peek of what is coming in 0.2.6: https://book.babashka.org/master.html#_pod_registry This should work with babashka master (available on #babashka_circleci_builds)
This is great, and the example is also one of the most featured request haha
Btw, comb is a templating library that does work with bb: https://github.com/borkdude/babashka/blob/master/doc/projects.md#comb
That’s what I’m looking for!
(require '[babashka.deps :as deps])
(deps/add-deps '{:deps {comb/comb {:mvn/version "0.1.1"}}})
(require '[comb.template :as template])
(template/eval "<% (dotimes [x 3] %>foo<% ) %>")
^ @romantsopinAlso another question, maybe there is a common way to watch directory and run a command on change? Something similar to hawk (which seems like incompatible)
@romantsopin This is also supported via a pod. https://github.com/babashka/pod-babashka-filewatcher
Great, will try it out
I'm using it to preview the babashka documentation while writing: https://github.com/babashka/book/blob/master/script/watch.clj