Skip to content

Commit

Permalink
move webdriver update logic into gulp task
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemmarsh committed Mar 15, 2016
1 parent a513600 commit 5c871a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion gulp/tasks/protractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ import testServer from '../util/testServer';
import gulp from 'gulp';
import {
protractor,
webdriver_update, // eslint-disable-line camelcase
webdriver
} from 'gulp-protractor';

gulp.task('webdriverUpdate', webdriver_update);
gulp.task('webdriver', webdriver);

gulp.task('protractor', ['prod', 'webdriver'], function(cb) {
gulp.task('protractor', ['prod', 'webdriverUpdate', 'webdriver'], function(cb) {

const testFiles = gulp.src('test/e2e/**/*.js');

Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@
"watchify": "^3.7.0"
},
"scripts": {
"test": "./node_modules/.bin/gulp test",
"webdriver-update": "./node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager update",
"postinstall": "npm run webdriver-update"
"test": "./node_modules/.bin/gulp test"
},
"license": "MIT"
}

0 comments on commit 5c871a3

Please sign in to comment.