perun

Discuss perun static site generator
jellea 2016-09-18T15:41:09.000021Z

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)

martinklepsch 2016-09-18T15:42:03.000023Z

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

jellea 2016-09-18T15:42:23.000024Z

both actually 🙂

martinklepsch 2016-09-18T15:42:39.000025Z

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

martinklepsch 2016-09-18T15:43:00.000026Z

so definitely possible but more play than plug

jellea 2016-09-18T15:46:00.000027Z

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

martinklepsch 2016-09-18T15:52:04.000030Z

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

martinklepsch 2016-09-18T15:52:10.000031Z

@jellea

juhoteperi 2016-09-18T15:52:34.000032Z

Cache-dir is used between Boot processes

juhoteperi 2016-09-18T15:52:39.000033Z

Normally tasks just use tmp-dir

martinklepsch 2016-09-18T15:52:47.000034Z

yes but he wants caching

juhoteperi 2016-09-18T15:52:56.000035Z

Ah yes

martinklepsch 2016-09-18T15:53:11.000036Z

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

jellea 2016-09-18T15:56:52.000037Z

martinklepsch great! that will start me cracking! 🙂

jellea 2016-09-18T15:58:56.000038Z

I love the getting started guide! 😄

martinklepsch 2016-09-18T16:01:14.000039Z

do you?

martinklepsch 2016-09-18T16:01:24.000040Z

I feel like we could probably simplify it quite a bit

martinklepsch 2016-09-18T16:01:28.000041Z

but well 😄