var gulp = require('gulp');
var autoprefixer = require('gulp-autoprefixer');
var Server = require('karma').Server;

function onError(err) {
console.log(err);
}
gulp.task('default', function () {
    return gulp.src('styles/*.css')
        .pipe(autoprefixer({
            browsers: ['last 2 versions'],
            cascade: false
        }))
        .pipe(gulp.dest('public/assets/css'));
});

/**
 * Run test once and exit
 */
gulp.task('test', function (done) {
  new Server({
    configFile: __dirname + '/karma.conf.js',
    singleRun: true
  }, done).start();
});

/**
 * Run test everytime files change
 */
gulp.task('testwatch', function (done) {
  new Server({
    configFile: __dirname + '/karma.conf.js',
    singleRun: false
  }, done).start();
});

@@ -133,16 +133,20 @@
 (err) %7B%0A
+    
 console.
@@ -453,32 +453,34 @@
 nction (done) %7B%0A
+  
   new Server(%7B%0A 
@@ -470,32 +470,36 @@
    new Server(%7B%0A
+    
     configFile: 
@@ -520,32 +520,36 @@
 karma.conf.js',%0A
+    
     singleRun: t
@@ -552,16 +552,18 @@
 n: true%0A
+  
   %7D, don
@@ -663,16 +663,18 @@
 done) %7B%0A
+  
   new Se
@@ -676,24 +676,28 @@
 ew Server(%7B%0A
+    
     configFi
@@ -726,24 +726,28 @@
 a.conf.js',%0A
+    
     singleRu
@@ -755,16 +755,18 @@
 : false%0A
+  
   %7D, don

Format gulpfile.js