Fork me on GitHub
#perun
<
2016-09-18
>
jellea15:09:09

Hey! Is Perun (or boot?) smart enough to not re-run tasks for posts/statics which arent modified? I want to setup a blog which will function as my audio blog and every audio file will have a waveform generated with it (via a task) and I don't want to go over all past files every time I would deploy. (poke @martinklepsch)

martinklepsch15:09:03

is this about deploying or incremental builds while working on the blog?

jellea15:09:23

both actually 🙂

martinklepsch15:09:39

when you write a task you can make the task use cache dirs which can be used to cache files over multiple boot invocations/compile-cycles

martinklepsch15:09:00

so definitely possible but more play than plug

jellea15:09:00

@martinklepsch do you have an example of a boot task using a similar approach?

martinklepsch15:09:04

essentially you'd put stuff in a cache dir and also track if the input files have changed, if they did or the "target file" is missing you build it, store the input files shasums somewhere and store the target-file

juhoteperi15:09:34

Cache-dir is used between Boot processes

juhoteperi15:09:39

Normally tasks just use tmp-dir

martinklepsch15:09:47

yes but he wants caching

martinklepsch15:09:11

hope that helps to some extent, once you have some code/problems I'm happy to take a look, provide help

jellea15:09:52

martinklepsch great! that will start me cracking! 🙂

jellea15:09:56

I love the getting started guide! 😄

martinklepsch16:09:24

I feel like we could probably simplify it quite a bit

martinklepsch16:09:28

but well 😄