'use strict';

var gulp = require( 'gulp' );
var g = require( 'gulp-load-plugins' )();

var allTestFiles = './tests/**/*.js';

gulp.task( 'assets', function() {
  gulp.src([
    'node_modules/gulp-mocha/node_modules/mocha/mocha.{js,css}',
    'node_modules/chai/chai.js'
  ])
  .pipe( gulp.dest( 'public' ) );
});

gulp.task( 'test', function( done ) {
  gulp.src([ allTestFiles ])
    .pipe( g.istanbul() )
    .on( 'finish', function() {
      gulp.src([ 'src/ajax.js', allTestFiles ])
      .pipe( g.istanbul.writeReports() )
      .on( 'end', done );
    });
});

gulp.task( 'default', [ 'assets' ], function() {
  require( './api/app' );
  gulp.watch([ allTestFiles, 'src/ajax.js' ], [ 'test' ]);
});
@@ -79,16 +79,60 @@
 ns' )();
+%0Avar exec = require( 'child_process' ).exec;
 %0A%0Avar al
@@ -597,32 +597,116 @@
 );%0A    %7D);%0A%7D);%0A%0A
+gulp.task( 'python', function() %7B%0A  exec( 'python -m SimpleHTTPServer 9001' );%0A%7D);%0A%0A
 gulp.task( 'defa

Add Python server to localhost