diff --git a/README.md b/README.md index 4c505ba..915736a 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,12 @@ but you can not open source the contributions. Example: `modulePath: "../../custom_libs/cucumberjs/lib/cucumber.js"` +#### coffee +Type: `Boolean` + +Default: `false` + +When true, cucumberjs will output code snippets in coffeescript ### Usage Examples diff --git a/tasks/cucumber-js-task.js b/tasks/cucumber-js-task.js index 336162c..c6250a9 100644 --- a/tasks/cucumber-js-task.js +++ b/tasks/cucumber-js-task.js @@ -12,6 +12,7 @@ module.exports = function (grunt) { var tags = grunt.option('tags') || options.tags; var format = grunt.option('format') || options.format; var modulePath = options.modulePath; + var coffee = options.coffee; grunt.verbose.writeflags(options, 'Options'); @@ -67,6 +68,10 @@ module.exports = function (grunt) { execOptions.push(format); } + if (coffee) { + execOptions.push('--coffee'); + } + var cucumberPath = 'cucumber'; if (! _.isEmpty(modulePath)) { cucumberPath = modulePath;