gruntjs / gruntjs/grunt

communication between tasks

Open
#581 6 comments 0 reactions 0 assignees View on GitHub
Component: tasks Type: Enhancement
Dominant language
JavaScript
Stars
12.2k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

This problem became apparent in a discussion on the [grunt-contrib-watch](https://github.com/gruntjs/grunt-contrib-watch/issues/14) repository. The issues there was that the watch task can not tell other tasks which files where changed and triggered the watch task to run them.

This shows a general problem in grunt and that is the missing communication infrastructure between tasks. [`grunt.event`](https://github.com/gruntjs/grunt/wiki/grunt.event) provides a good technical implementation and I personally think events are the way to go. But what we need is a solid convention so everybody knows how grunt plugins can be talked to.

I hope we can start a discussion about this matter here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.