Skip to content

Instantly share code, notes, and snippets.

@NickHeiner
Last active August 29, 2015 14:15
Show Gist options
  • Save NickHeiner/43236790c62925a3d5f4 to your computer and use it in GitHub Desktop.
Save NickHeiner/43236790c62925a3d5f4 to your computer and use it in GitHub Desktop.
Grunt task control flow - the real way
grunt.registerTask(‘task-a’, function() {
var result = doStuff();
grunt.registerTask(‘after-task-b’, function() {
doMoreStuff(result);
});
grunt.task.run(‘task-b’);
grunt.task.run(‘after-task-b’);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment