From 9bee0c28bcfde818a494339c564aec812956edb8 Mon Sep 17 00:00:00 2001 From: Kuniwak Date: Thu, 26 Mar 2015 15:47:55 +0900 Subject: [PATCH 1/7] Goodbye phantomjs --- gulpfile.js | 13 ------------- package.json | 2 -- 2 files changed, 15 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 02c4e6e4..de2a0bfd 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,6 +1,5 @@ 'use strict'; -var util = require('util'); var path = require('path'); var gulp = require('gulp-help')(require('gulp')); var merge = require('merge-stream'); @@ -33,18 +32,6 @@ var tasks = [ ]; -tasks.forEach(function(task) { - var run = require('gulp-run'); - var url = util.format('http://localhost:%d/%s/', serve.PORT, task.id); - - gulp.task(task.id, task.help, ['lint-' + task.id], function() { - // We expected that mocha-phantomjs print colorized results, but it isn't. - // So, I take a fast way that is using gulp-run. - return run('$(npm bin)/mocha-phantomjs ' + url + ' || true').exec(); - }); -}); - - tasks.forEach(function(task) { var stage = path.join('public', task.id); var js = path.join(stage, '**/*.js'); diff --git a/package.json b/package.json index ca45ee05..2423af7b 100644 --- a/package.json +++ b/package.json @@ -31,10 +31,8 @@ "gulp-eslint": "^0.6.0", "gulp-help": "^1.3.3", "gulp-nodemon": "^1.0.5", - "gulp-run": "^1.6.6", "gulp-util": "^3.0.4", "merge-stream": "^0.1.7", - "mocha-phantomjs": "^3.5.3", "stream-combiner2": "^1.0.2" }, "dependencies": { From d2a47db7fffa0fd210cb7c0dd6a7ff3af77d102f Mon Sep 17 00:00:00 2001 From: Kuniwak Date: Thu, 26 Mar 2015 16:27:35 +0900 Subject: [PATCH 2/7] Remove code for PhantomJS --- public/stage1/index.html | 3 --- public/stage1/tests.js | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/public/stage1/index.html b/public/stage1/index.html index 83b38a29..5528cf67 100644 --- a/public/stage1/index.html +++ b/public/stage1/index.html @@ -41,9 +41,6 @@ -