Created
June 12, 2014 09:42
-
-
Save sudodoki/8e35365074e80a2e36d7 to your computer and use it in GitHub Desktop.
This file contains 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
mytask: { | |
options: {}, | |
a: { | |
options: { | |
src: "src", | |
dest: "dest", | |
match: '*' | |
} | |
}, | |
b: { | |
options: { | |
src: "src2", | |
dest: "dest2", | |
match: '*' | |
} | |
} | |
}, | |
oldtask: { | |
options: { | |
src: '', | |
dest: '' | |
} | |
} | |
grunt.task.registerTask('mytask', 'mytask descr', function () { | |
// get options here | |
this.options() // -> won't work with grunt mytask:a, but did work with grunt oldtask | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment