Permalink
Browse files

v.0.1.1

-Added a configuration option to change the path to the Cucumber.js library, enabling control over the path lets developers use customized versions of Cucumber.js
-Updated version number to 0.1.1
-Updated README with new config option

Signed-off-by: Omar Gonzalez <omar@almerblank.com>
  • Loading branch information...
s9tpepper committed Aug 9, 2012
1 parent aba3b36 commit e12cb5302fb179fd01feec74f09c570c26eef58e
Showing with 5 additions and 2 deletions.
  1. +1 −0 README.md
  2. +1 −0 grunt.js
  3. +1 −1 package.json
  4. +2 −1 tasks/cucumber-js-task.js
View
@@ -10,6 +10,7 @@ Then add this line to your project's `grunt.js` gruntfile:
```javascript
grunt.initConfig({
cucumberjs: {
+ executable: "../path/to/custom/cucumberjs",
features: "path/to/features",
steps: "path/to/step_definitions",
tags: "@dev"
View
@@ -23,6 +23,7 @@ module.exports = function (grunt) {
globals: {}
},
cucumberjs: {
+ executable: "../node_modules/cucumber/lib/cucumber.js", /* Relative to /tasks folder */
features: "features",
steps: "features/step_definitions"
}
View
@@ -1,7 +1,7 @@
{
"name" : "grunt-cucumber",
"description" : "Grunt task for running Cucumber.js",
- "version" : "0.1.0",
+ "version" : "0.1.1",
"homepage" : "https://github.com/s9tpepper/grunt-cucumber-js",
"author" : {
"name" : "Omar Gonzalez",
@@ -2,7 +2,8 @@ module.exports = function (grunt) {
grunt.registerTask("cucumberjs", "Runs cucumber.js", function () {
- var Cucumber = require('cucumber');
+ var cucumberPath = grunt.config("cucumberjs.executable") || 'cucumber';
+ var Cucumber = require(cucumberPath);
var features = grunt.config("cucumberjs.features") || 'features';
var steps = grunt.config("cucumberjs.steps") || 'features/step_definitions';

0 comments on commit e12cb53

Please sign in to comment.