Fork me on GitHub
#boot
<
2017-09-02
>
dominicm09:09:20

@richiardiandrea have you got a way of wrapping shadow into the boot fileset?

richiardiandrea13:09:42

No well, I consider shadow a standalone project and I would not even try that :)

driphter15:09:45

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!))))))

cjhowe09:09:01

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"]

cjhowe09:09:36

found those by googling and ended up on the mailing list

cjhowe09:09:10

i can send the errors if no one knows what causes this?

dominicm10:09:01

@cjhowe so guava & commons-codec are both things we've had to exclude & such due to general dependency conflicts (`boot show -d`)

dominicm10:09:19

usually it's something bringing in an old guava, and clojurescript expecting a newer one.

dominicm10:09:48

I think boot show --pedantic can show you conflicts

cjhowe11:09:24

cool, thanks!

donyorm15:09:04

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?