Last active
August 29, 2015 14:15
-
-
Save NickHeiner/05f97584cb3f9071e266 to your computer and use it in GitHub Desktop.
Pain with grunt
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 uuid = require('uuid'), | |
| result = doStuff(), | |
| postTaskName = 'after-task-b-' + uuid.v4(); | |
| grunt.registerTask(postTaskName, function() { | |
| doMoreStuff(result); | |
| }); | |
| grunt.config(postTaskName, { | |
| runtimeGenerated: arbitraryConfig(); | |
| }); | |
| grunt.task.run(‘task-b’); | |
| grunt.task.run(postTaskName); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment