Fork me on GitHub
#boot
<
2018-06-03
>
ClashTheBunny21:06:47

Hey folks, I'm trying to develop a build.boot file for cljsjs and wondering if I can run individual deftasks while working on them. They seem to return functions, but I don't see anywhere where the arguments to those functions are documented.

seancorfield22:06:05

@clashthebunny In a REPL you can run tasks using the boot function.

ClashTheBunny22:06:26

How do you compose the steps of the tasks?

ClashTheBunny22:06:14

How would I run the subsequent task multiple times without repeating the first task. Like, I want to run download once and then run build multiple times.

ClashTheBunny22:06:29

Kinda like a docker container build only re-runs the lines after the change?

seancorfield22:06:25

It's just code: just call the build task multiple times.

ClashTheBunny22:06:15

It seems to run correctly when I run (boot (download-mcw-react) (build-material-components-react)) but when I run (boot (download-mcw-react)) (boot (build-material-components-react))` I get java.io.IOException: error=2, No such file or directory.

seancorfield22:06:47

The stacktrace should tell you where that error is originating.

seancorfield22:06:51

Ah, each boot pipeline works on a fresh fileset. Unless you use target to write files after the download, they won't be there for a subsequent boot pipeline.

ClashTheBunny22:06:58

Yeah! So, I need to export the fileset each time I'm done with a task?

seancorfield22:06:46

If you want to run tasks in separate pipelines, yes, you need to use target to save the files to a concrete folder, then subsequent pipelines need that folder as one of the inputs.