title: Gulp restart the server when i changed my front end(Angularjs) controller file
body: <p>I have this gulpfile.js</p>
  
  <pre><code>// Dependencies
  var gulp = require('gulp');
  var nodemon = require('gulp-nodemon');
  // var notify = require('gulp-notify');
  var livereload = require('gulp-livereload');
  
  // Task
  gulp.task('default', function () {
     // listen for changes
     livereload.listen();
     // configure nodemon
     nodemon({
        // the script to run the app
        script: 'server.js',
        ext: 'js'
     }).on('restart', function () {
        // when the app has restarted, run livereload.
        gulp.src('server.js')
           .pipe(livereload())
        //    .pipe(notify('Reloading page, please wait...'));
     })
  })
  </code></pre>
  
  <p>I want to reload gulp only if my server.js (server-side) file changed,</p>
  
  <p>but if i changed front end file in angularjs <strong>controller.js</strong>, gulp restarting the server.</p>
  
  <p>How to solve this?</p>