Last active
August 29, 2015 14:15
-
-
Save NickHeiner/43236790c62925a3d5f4 to your computer and use it in GitHub Desktop.
Grunt task control flow - the real way
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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