Created
February 19, 2015 23:17
-
-
Save NickHeiner/f98fb19277f53cbff0a9 to your computer and use it in GitHub Desktop.
Passing config
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
// 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