librelist archives

« back to archive

Running multiple things on file change

Running multiple things on file change

From:
Colin Yates
Date:
2014-10-28 @ 09:38
Hi,

At the moment I have "lein cljsbuild auto", "lein garden auto", "lein
a-n-other-test-runner auto" etc.

Is there a convenient (e.g. already written :)) way to say to lein "do
all these things when any file changes". Ideally something that took a
map where the key was a selector for the files and the key was
something consistent with the keys in aliases?

Any prior art for this?

Thanks,

Colin

Re: [leiningen] Running multiple things on file change

From:
James Reeves
Date:
2014-10-28 @ 10:56
I've written a plugin called "lein-auto" that will execute a task when
files in a directory are modified.

https://github.com/weavejester/lein-auto

- James

On 28 October 2014 09:38, Colin Yates <colin.yates@gmail.com> wrote:

> Hi,
>
> At the moment I have "lein cljsbuild auto", "lein garden auto", "lein
> a-n-other-test-runner auto" etc.
>
> Is there a convenient (e.g. already written :)) way to say to lein "do
> all these things when any file changes". Ideally something that took a
> map where the key was a selector for the files and the key was
> something consistent with the keys in aliases?
>
> Any prior art for this?
>
> Thanks,
>
> Colin
>

Re: [leiningen] Running multiple things on file change

From:
Colin Yates
Date:
2014-10-28 @ 11:13
weavejester knocks it out of the park again! Thanks James :).

On 28 October 2014 10:56, James Reeves <james@booleanknot.com> wrote:
> I've written a plugin called "lein-auto" that will execute a task when files
> in a directory are modified.
>
> https://github.com/weavejester/lein-auto
>
> - James
>
> On 28 October 2014 09:38, Colin Yates <colin.yates@gmail.com> wrote:
>>
>> Hi,
>>
>> At the moment I have "lein cljsbuild auto", "lein garden auto", "lein
>> a-n-other-test-runner auto" etc.
>>
>> Is there a convenient (e.g. already written :)) way to say to lein "do
>> all these things when any file changes". Ideally something that took a
>> map where the key was a selector for the files and the key was
>> something consistent with the keys in aliases?
>>
>> Any prior art for this?
>>
>> Thanks,
>>
>> Colin
>
>