'use strict';

var gulp       = require('gulp');
var connect    = require('gulp-connect');
var fallback   = require('connect-history-api-fallback');

gulp.task('connect:test', function() {
    return connect.server({
        root       : 'test',
        port       : 9001,
        livereload : true,
        middleware : function (connect, options) {
            return [fallback];
        }
    });
});

'use strict';

var gulp       = require('gulp');
var connect    = require('gulp-connect');
var fallback   = require('connect-history-api-fallback');

gulp.task('connect:test', function() {
    return connect.server({
        root       : 'test',
        port       : 9999,
        livereload : true,
        middleware : function (connect, options) {
            return [fallback];
        }
    });
});

Use port 9999 for test runner.
Use port 9999 for test runner.
