Fork me on GitHub
#perun
<
2018-01-17
>
bhagany01:01:35

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

bhagany01:01:58

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

bhagany01:01:15

definitely open to making that more robust, though

richiardiandrea02:01:27

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

bhagany02:01:20

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

bhagany02:01:10

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

bhagany02:01:20

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

bhagany02:01:45

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

bhagany02:01:37

I like that longer fix idea

richiardiandrea02:01:44

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