Skip to content

Commit

Permalink
Merge pull request #15 from GoIncremental/coffeescriptOption
Browse files Browse the repository at this point in the history
Support coffeescript option
  • Loading branch information
s9tpepper committed Mar 31, 2015
2 parents 9adbcd0 + 0b9a570 commit ef1f621
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions tasks/cucumber-js-task.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down Expand Up @@ -67,6 +68,10 @@ module.exports = function (grunt) {
execOptions.push(format);
}

if (coffee) {
execOptions.push('--coffee');
}

var cucumberPath = 'cucumber';
if (! _.isEmpty(modulePath)) {
cucumberPath = modulePath;
Expand Down

0 comments on commit ef1f621

Please sign in to comment.