Fork me on GitHub
#boot
<
2017-02-04
>
alandipert00:02:19

i.e. (deftask your-task [] (comp (foo) (bar) ... (target :dir #{"release"})))

alandipert00:02:58

but that doesn't handle the rename; for that you'd want something like (sift {#"js/app.js" "site.min.js"})

alandipert00:02:30

so your final task would look like:

(deftask my-task []
  (comp (foo) (bar) (sift :move {#"js/app.js" "site.min.js"}) (target :dir #{"release"}))

samueldev00:02:49

thanks @alandipert ! I had figured out the target :dir option and was in the process of trying to interpret the sift task when you gave me my answer 🙂

alandipert00:02:19

cool. made a small edit, it's the :move option of sift you want. can learn more with (doc sift) if you haven't found that yet

samueldev00:02:21

oh snap I hadn't, thanks!

alandipert00:02:56

yeah the repl is the way to figure this stuff out

alandipert00:02:04

then you don't pay boot startup to experiment

alandipert00:02:37

ie boot repl, then make some edits to your build.boot, then (load-file "build.boot") at repl. then to try your edits, (boot (my-task)) at repl

qqq03:02:40

step three of setting up dirac involves injecting a "preload" into clojurescript for dirac

qqq03:02:49

how do I pass the "preload" option from boot to clojurescript?

qqq04:02:07

are docs here: https://github.com/boot-clj/boot-cljs-devtools broken? Docs points to 0.1.2, which has cljs-devtools task but not dirac task however, readme says you have to have both (cljs-devtools) and (dirac)

richiardiandrea16:02:11

@qqq yes the split has happened in 0.1.3, I think at this point enough people have used the snapshot so I will push a release this weekend,, thanks for reporting!

qqq16:02:56

@richiardiandrea : you're part of the team behind boot-cljs-devtools? Thanks for creating it! I wasn't aware I was wasting important dev time with all my questions 🙂

richiardiandrea16:02:35

@qqq yeah, it was originally written by Jupl and then I took it over and moved it to where it currently is, it is a team effort though, as it should be in oss projects 😀😀

qqq17:02:09

where is a minimal example of boot flavors? (with different sets of dependencies)

qqq18:02:58

@richiardiandrea : right, I couldn't figure that out, was hoping for a smaller example, but if that indeed is minimal, I should just dig in

richiardiandrea19:02:32

Well you need flavors only in very complicated setups I reckon 😄 @qqq

sineer20:02:18

Thanks a lot for cljs-devtools ! Made me discover dirac and this is exactly what I was looking for 🙂

moxaj23:02:15

I'd like to start a lumo repl from within boot (with dosh). The repl starts, but cannot recieve inputs 😞. Anyone?

alandipert23:02:15

i would guess that dosh sets up its own input/output streams for the process, and doesn't automatically connect them to repl's out/in