This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-02
Channels
- # bangalore-clj (4)
- # beginners (30)
- # boot (11)
- # cljsrn (11)
- # clojure (18)
- # clojure-conj (2)
- # clojure-italy (1)
- # clojure-uk (6)
- # clojurescript (14)
- # clojurewerkz (1)
- # core-async (3)
- # fulcro (14)
- # hoplon (12)
- # lumo (7)
- # off-topic (24)
- # onyx (2)
- # portkey (1)
- # protorepl (1)
- # re-frame (8)
- # spacemacs (14)
- # specter (95)
- # unrepl (14)
@richiardiandrea have you got a way of wrapping shadow into the boot fileset?
No well, I consider shadow a standalone project and I would not even try that :)
Maybe you could try something like this?
(deftask memes []
(let [output (tmp-dir!)
work (tmp-dir!)] ; directory of files for shadow to work against
(with-pre-wrap fileset
(let [input-dirs (->> fileset
(input-files)
(by-ext [".lol"]) ; filter the files you need
(into #{} (map tmp-dir)))]
(apply sync! work less-dirs) ; put them in the work directory
(do-stuff work output) ; do your shadow stuff here
(-> fileset
(add-resource output) ; add the result to the fileset
(commit!))))))
is something wrong with the latest clojurescript or boot-cljs, or maybe it's carmine? i had to add these dependencies for boot-cljs to compile my project without weird crashes and errors: [commons-codec/commons-codec "1.10"] [com.google.guava/guava "21.0"]
@cjhowe so guava & commons-codec are both things we've had to exclude & such due to general dependency conflicts (`boot show -d`)
usually it's something bringing in an old guava, and clojurescript expecting a newer one.
So I'm having an issue where an item in as task isn't being added to the classpath even though they are being written (it's a css file created with boot garden). It's being added with add-resource
(inside the task internals), but isn't accessible with slurp
inside the same repl as where it's created. Am I missing something about how filesets work?