Skip to content

Instantly share code, notes, and snippets.

@couto
Last active December 16, 2015 13:58
Show Gist options
  • Save couto/5445071 to your computer and use it in GitHub Desktop.
Save couto/5445071 to your computer and use it in GitHub Desktop.
// Dynamic (lol) load grunt tasks
Object
.keys(JSON.parse(fs.readFileSync(__dirname + path.sep + 'package.json')).devDependencies)
.forEach(function (key) { return (/^grunt-/).test(key) && grunt.loadNpmTasks(key); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment