gruntjs / grunt-contrib-watch

Run tasks whenever watched files change.
http://gruntjs.com/
MIT License
1.98k stars 356 forks source link

Feature Suggestion: expire / timeout option #428

Closed evvvritt closed 9 years ago

evvvritt commented 9 years ago

Hi,

It would be great to have an option for the watch task to expire or timeout after a certain amount of time.

Often times I forget I get distracted or end my work session without remembering to terminate grunt watch. Keeping it running seems to take a significant amount of energy / processing so it would be great to be able to set a timeout.

Thanks

sindresorhus commented 9 years ago
grunt watch & sleep 3600; kill $!
evvvritt commented 9 years ago

Ah, thanks sindresorhus. Do you have any insight into how I might register that line into a task? I didn't find the GruntJS.com guide helpful.