From 4c34351383b0e7bb9f305a751e3483bacb408854 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Mon, 27 Feb 2017 11:22:50 -0800 Subject: [PATCH] Remove PhantomJS completely --- gulpfile.js | 10 ++-------- package.json | 1 - 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 0043d7b1..2e58d26c 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -6,7 +6,6 @@ const gulp = require('gulp'); const istanbul = require('gulp-istanbul'); const merge = require('merge-stream'); const mocha = require('gulp-mocha'); -const mochaPhantomJs = require('gulp-mocha-phantomjs'); const sorcery = require('sorcery'); const source = require('vinyl-source-stream'); const sourcemaps = require('gulp-sourcemaps'); @@ -80,17 +79,12 @@ gulp.task('instrument-test', function () { .pipe(istanbul.hookRequire()); }); -gulp.task('test-mocha', ['instrument-test'], function () { +gulp.task('mocha', ['instrument-test'], function () { return gulp.src(['lib/*test.js', 'lib/**/*test.js'], {read: false}) .pipe(mocha()) .pipe(istanbul.writeReports()); }); -gulp.task('test-mocha-phantomjs', function () { - return gulp.src('test-harness.html') - .pipe(mochaPhantomJs()); -}); - /** * Use `sorcery` to resolve the source map chain and point back to the TypeScript files. * (Without this task the source maps produced for the JavaScript bundle points into the @@ -111,5 +105,5 @@ gulp.task('coveralls', function () { }); gulp.task('build', ['sorcery']); -gulp.task('test', ['test-mocha', 'test-mocha-phantomjs']); +gulp.task('test', ['mocha']); gulp.task('default', ['build']); diff --git a/package.json b/package.json index 3acacd10..5478a03f 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,6 @@ "gulp-coveralls": "^0.1.4", "gulp-istanbul": "^1.1.1", "gulp-mocha": "^3.0.1", - "gulp-mocha-phantomjs": "^0.12.0", "gulp-sourcemaps": "1.9.1", "gulp-typescript": "^3.1.3", "jsdoc": "3.4.3",