Skip to content

Instantly share code, notes, and snippets.

@NickHeiner
Last active August 29, 2015 14:15
Show Gist options
  • Save NickHeiner/05f97584cb3f9071e266 to your computer and use it in GitHub Desktop.
Save NickHeiner/05f97584cb3f9071e266 to your computer and use it in GitHub Desktop.
Pain with grunt
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