Closed sebdeckers closed 11 years ago
Some of my options use a reference to grunt to do more complex stuff than simple JSON allows.
grunt
This patch is backwards compatible and supports both of these syntax for options files:
module.exports = function (grunt) { return { /* ... */ }; };
module.exports = { /* ... */ };
can you add some tests?
Test added
awesome, thanks. I'll merge and release this tonight
Some of my options use a reference to
grunt
to do more complex stuff than simple JSON allows.This patch is backwards compatible and supports both of these syntax for options files:
Function
JSON