Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit aa48991

Browse files
committed
fix(gulpfile): run on Windows
1 parent 834096e commit aa48991

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: gulpfile.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ var source = require('vinyl-source-stream');
33
var browserify = require('browserify');
44
var exec = require('child_process').exec;
55
var http = require('http');
6+
var path = require('path');
67
var st = require('st');
78
var Router = require('routes-router');
89

@@ -34,7 +35,7 @@ function startServer() {
3435

3536
gulp.task('protractor', ['build', 'webdriver'], function (cb) {
3637
var server = startServer();
37-
var cmd = './node_modules/.bin/protractor protractor' +
38+
var cmd = path.resolve(__dirname, 'node_modules/.bin/protractor') + ' protractor' +
3839
(process.env.TRAVIS_JOB_NUMBER ? '-travis' : '') +
3940
'.conf.js';
4041

@@ -50,7 +51,7 @@ gulp.task('protractor', ['build', 'webdriver'], function (cb) {
5051
});
5152

5253
gulp.task('webdriver', function (cb) {
53-
exec('./node_modules/.bin/webdriver-manager update', cb);
54+
exec(path.resolve(__dirname, 'node_modules/.bin/webdriver-manager') + ' update', cb);
5455
});
5556

5657
gulp.task('test', ['protractor']);

0 commit comments

Comments
 (0)