Skip to content

Instantly share code, notes, and snippets.

@mattkelley
Created October 20, 2015 16:21
Show Gist options
  • Save mattkelley/9b06b9e6ac995f3bd6d6 to your computer and use it in GitHub Desktop.
Save mattkelley/9b06b9e6ac995f3bd6d6 to your computer and use it in GitHub Desktop.
modify grunt tasks inside registerTask
// Reconfigure tasks
Array.prototype.map.call([
// Unit tests should run in the background
['karma.unit.background', true],
// Unit tests should run on every JS change
['karma.unit.singleRun', false]
], function(args) {
return grunt.config.set(args[0], args[1])
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment