var gulp = require('gulp');
var less = require('gulp-less');
var path = require('path');
var mocha = require('gulp-mocha');
var browserSync = require('browser-sync');
var nodemon = require('gulp-nodemon');

//************************
gulp.task('less', function () {
    return gulp.src('./public/stylesheets/**/*.less')
        .pipe(less({
            paths: [path.join(__dirname, 'less', 'includes')]
        }))
        .pipe(gulp.dest('./public/stylesheets'));
});

//************************
gulp.task('test', function () {
    return gulp.src('./tests/test*.js', { read: false })
    // gulp-mocha needs filepaths so you can't have any plugins before it 
        .pipe(mocha());
});

//************************
gulp.task('browser-sync', ['nodemon'], function () {
    browserSync.init(null, {
        proxy: "http://localhost:3000",
        files: ["public/**/*.*"],
        browser: "google chrome",
        port: 7000,
    });
});

//************************
gulp.task('nodemon', function (cb) {
    var started = false;

    return nodemon({
        script: './bin/www',
        nodeArgs: ['--debug-brk=52977 --nolazy'], //lets you attach the debugger to running instance
        watch: ['app.js', 'bin/www', 'views/**/*.*', 'routes/**/*.js']
    }).on('start', function () {
        if (!started) {
            cb();
            started = true;
        }
    }).on('restart', function onRestart() {
        setTimeout(function reload() {
            browserSync.reload({
                stream: false
            });
        }, 500);  // browserSync reload delay
    });
});
@@ -204,35 +204,8 @@
 );%0A%0A
-//************************%0A
 gulp
@@ -440,35 +440,8 @@
 );%0A%0A
-//************************%0A
 gulp
@@ -633,35 +633,8 @@
 );%0A%0A
-//************************%0A
 gulp
@@ -856,35 +856,8 @@
 );%0A%0A
-//************************%0A
 gulp
@@ -969,109 +969,8 @@
 w',%0A
-        nodeArgs: %5B'--debug-brk=52977 --nolazy'%5D, //lets you attach the debugger to running instance%0A
     
@@ -986,11 +986,9 @@
 : %5B'
-app
+*
 .js'
@@ -1355,19 +1355,52 @@
 d delay%0A    %7D);%0A
-
 %7D);
+%0A%0Agulp.task('default', %5B'less'%5D);

remove debug from nodemon command in gulpfile.js