This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-15
Channels
- # beginners (56)
- # boot (4)
- # cider (22)
- # clara (10)
- # cljs-dev (50)
- # cljsrn (27)
- # clojure (27)
- # clojure-conj (4)
- # clojure-dev (3)
- # clojure-italy (17)
- # clojure-nl (12)
- # clojure-norway (3)
- # clojure-spec (10)
- # clojure-uk (137)
- # clojurescript (132)
- # cursive (4)
- # datascript (2)
- # datomic (109)
- # devcards (2)
- # editors (1)
- # emacs (4)
- # euroclojure (2)
- # events (4)
- # figwheel (1)
- # fulcro (15)
- # jobs (1)
- # jobs-discuss (4)
- # juxt (3)
- # leiningen (2)
- # off-topic (21)
- # onyx (13)
- # other-languages (8)
- # pedestal (6)
- # re-frame (22)
- # reagent (5)
- # reitit (1)
- # ring-swagger (3)
- # shadow-cljs (75)
- # sql (6)
- # tools-deps (2)
- # vim (1)
- # yada (8)
This might be useful for someone. I had problems with boot-cljs slowing down my build when I was trying to iterate writing styles using garden & having the styles reload in the browser.
(defn switch [switch-atom switched-task]
(let [init (atom true)]
(fn [next-handler]
(fn [fileset]
(if (or @init @switch-atom)
(do (reset! init false)
((switched-task next-handler) fileset))
(next-handler fileset))))))
Used in a pipeline like:
(def cljs-every-build (atom false))
(deftask build-frontend
[]
(comp
(build-styles)
(switch cljs-every-build (cljs))))
@seancorfield - IIRC you mentioned once working on a monorepo system with sub-projects having their own deps, etc. and gluing it all together with boot. Have you got a gist or writeup somewhere to share some of those details? Or anyone else for that matter 🙂 I’m specifically interested in working with a monorepo where each project could theoretically have its own deps (clj / cljs / npm) and generate its own artifacts. Not sure if its a good idea, thoughts?
@pithyless yes we are working on that but it's slow progress because it all works already with boot and other things are higher priority. We have a branch where the first few subprojects in the monorepo have been converted.