Skip to content

Commit

Permalink
Merge pull request #85 from matoilic/master
Browse files Browse the repository at this point in the history
Allow to pipe tasks after protractor
  • Loading branch information
mattfritz committed Nov 30, 2015
2 parents 26ba724 + 8f54f8e commit f6e0907
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.js
Expand Up @@ -15,12 +15,12 @@ function getProtractorDir() {
}
var result = require.resolve("protractor");
if (result) {
// result is now something like
// result is now something like
// c:\\Source\\gulp-protractor\\node_modules\\protractor\\lib\\protractor.js
protractorDir = path.resolve(path.join(path.dirname(result), "..", "..", ".bin"));
return protractorDir;
}
throw new Error("No protractor installation found.");
throw new Error("No protractor installation found.");
}

var protractor = function(options) {
Expand All @@ -32,6 +32,7 @@ var protractor = function(options) {

return es.through(function(file) {
files.push(file.path);
this.push(file);
}, function() {
var stream = this;

Expand Down Expand Up @@ -80,7 +81,7 @@ var webdriver_update = function(opts, cb) {
args.push("--" + element);
});
}
}
}
child_process.spawn(path.resolve(getProtractorDir() + '/webdriver-manager'+winExt), args, {
stdio: 'inherit'
}).once('close', callback);
Expand Down

0 comments on commit f6e0907

Please sign in to comment.