perun

Discuss perun static site generator
bhagany 2018-01-17T01:44:35.000209Z

I'm not very familiar with SemanticUI - what does .overrides do?

bhagany 2018-01-17T01:45:58.000376Z

right now, it's tracking what file the result is compiled from, so yeah, other files being touched won't trigger a re-render

bhagany 2018-01-17T01:46:15.000044Z

definitely open to making that more robust, though

richiardiandrea 2018-01-17T02:05:27.000042Z

The other files are basically customizing the generated css...so abstracting would be to trigger a task based on when not just one but multiple files on the fileset change

bhagany 2018-01-17T02:15:13.000076Z

hmm, well

bhagany 2018-01-17T02:15:20.000154Z

there's still probably a way to do what you want -

bhagany 2018-01-17T02:17:10.000229Z

perun will re-render a file if one of its :input-paths changes, like here: https://github.com/hashobject/perun/blob/master/src/io/perun.clj#L298

bhagany 2018-01-17T02:19:20.000117Z

lessc uses that function to generate output paths, so for a quick fix, you could just wrap that function and add whatever you want to each entry's :input-paths, in your own lessc task, implemented almost exactly like perun's

bhagany 2018-01-17T02:20:45.000148Z

for a longer fix, perhaps we could figure out a way for the end-user of of lessc to modify :input-paths, since for this kind of thing, it's not obvious to me how perun would know what files to watch

bhagany 2018-01-17T02:21:37.000064Z

I like that longer fix idea

richiardiandrea 2018-01-17T02:51:44.000010Z

Yes I think the longer term idea is best. A regex to each task could specify what can retrigger a change or something...