Skip to content

Instantly share code, notes, and snippets.

@NickHeiner
Created February 19, 2015 23:17
Show Gist options
  • Save NickHeiner/f98fb19277f53cbff0a9 to your computer and use it in GitHub Desktop.
Save NickHeiner/f98fb19277f53cbff0a9 to your computer and use it in GitHub Desktop.
Passing config
// index.js
function myTask(args) {
}
// tasks/task.js
module.exports = function(grunt) {
grunt.registerMultiTask('my-task', function() {
var myTask = require('../');
var options = this.options();
myTask(options);
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment