Gulp reloads same file many times
<p>I am using gulp to run both client and server in my project. In the terminal, seems like the same files are reloaded many times. What could be the reason and how to fix this?</p>

<p>[12:00:03] /Users/verinasutd/Dev/Projects/metaBranch1/app/js/_runMainLayout.js reloaded.
[12:00:03] /Users/verinasutd/Dev/Projects/metaBranch1/app/js/_runMainLayout.js reloaded.
[12:00:03] /Users/verinasutd/Dev/Projects/metaBranch1/app/js/_runMainLayout.js reloaded.
[12:00:03] /Users/verinasutd/Dev/Projects/metaBranch1/app/js/_runMainLayout.js reloaded.
[12:00:03] /Users/verinasutd/Dev/Projects/metaBranch1/app/js/_runMainLayout.js reloaded.
[12:00:03] /Users/verinasutd/Dev/Projects/metaBranch1/app/js/_runMainLayout.js reloaded.</p>

<p>[12:00:03] /Users/verinasutd/Dev/Projects/metaBranch1/app/js/getData.js reloaded.
[12:00:03] /Users/verinasutd/Dev/Projects/metaBranch1/app/js/getData.js reloaded.
[12:00:03] /Users/verinasutd/Dev/Projects/metaBranch1/app/js/getData.js reloaded.
[12:00:03] /Users/verinasutd/Dev/Projects/metaBranch1/app/js/getData.js reloaded.
[12:00:03] /Users/verinasutd/Dev/Projects/metaBranch1/app/js/getData.js reloaded.
[12:00:03] /Users/verinasutd/Dev/Projects/metaBranch1/app/js/getData.js reloaded.</p>

<p>At the same time also nodemon, notify, live-reload. It does feel excessive however this was the way somehow that could work the last time the project was developed. Below is the gulpfile.</p>

<pre><code>// gulpfile.js
var gulp = require('gulp');
var nodemon = require('gulp-nodemon');

var notify = require('gulp-notify');
var livereload = require('gulp-livereload');
var webpack = require('webpack-stream’);

gulp.task('js', function () {
   gulp.src('./app/js/*.js')
    .pipe(livereload());
});

gulp.task('watch', function () {
   livereload.listen();
   gulp.watch(['./app/js/*.*'], ['js']); //update
});

gulp.task('server', function(){
   // listen for changes
   livereload.listen();
   // configure nodemon
   nodemon({
     // the script to run the app
     script: 'run.js',
     ext: 'js'
   }).on('restart', function(){
   // when the app has restarted, run livereload.
     gulp.src('run.js')
       .pipe(livereload());
   })
 });


 gulp.task('client', function(){

 gulp.src('./app/js/es6/main.js') //'src/entry.js'
   .pipe(webpack( require('./webpack.config.js') ))
   .pipe(gulp.dest(__dirname + '/app/js'))
   .pipe(livereload());

 });

 gulp.task('default', function() {
 });

 gulp.task('default', ['server','client','watch']);
</code></pre>