gruntjs / gruntjs/grunt

Queue an anonymous function with grunt.task.run

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

Description

I often want to log or cleanup after delegating some work via `grunt.task.run`. This seems like a clean syntax to me:

```
grunt.registerTask('foo', function() {
grunt.task.run(
'beep',
'boop',
function() {
grunt.log.ok('done');
}
});
```

Are there other solutions? I'm thinking of spinning off a plugin and if it goes well, submitting a PR. Is this something you'd welcome in core grunt?

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.