//gulpfile.js

'use strict';

var gulp = require('gulp');
var nodemon = require('gulp-nodemon');
var sass = require('gulp-sass');
var concat = require('gulp-concat');
var ngAnnotate = require('gulp-ng-annotate');
var uglify = require('gulp-uglify');
var autoprefixer = require('gulp-autoprefixer');

gulp.task('nodemon', function() {
    nodemon({
        script: 'server/index.js'
        , ext: 'js html'
        , env: { 'NODE_ENV': 'development' }
    })
});

gulp.task('sass', function () {
    return gulp.src('client/assets/css/styles.sass')
        .pipe(sass())
        .pipe(autoprefixer({
            browsers: ['last 2 versions'],
            cascade: false
        }))
        .pipe(gulp.dest('client/dist/css'));
});

gulp.task('sass:watch', function () {
    gulp.watch('client/assets/css/*.sass', ['sass']);
});

gulp.task('uglify', function() {
    gulp.src([
            'client/app/**/*.module.js',
            'client/components/**/*.module.js',
            'client/app/**/*.js',
            'client/components/**/*.js'
        ])
        .pipe(concat('app.min.js'))
        .pipe(ngAnnotate({
            add: true
        }))
        .pipe(uglify())
        .pipe(gulp.dest('client/dist/js'))
});

gulp.task('prod', ['uglify', 'sass']);

gulp.task('default', ['uglify', 'nodemon', 'sass:watch']);
@@ -1209,24 +1209,150 @@
 /js'))%0A%7D);%0A%0A
+gulp.task('uglify:watch', function () %7B%0A    gulp.watch(%5B'client/app/**/*.js', 'client/components/**/*.js'%5D, %5B'uglify'%5D);%0A%7D);%0A%0A
 gulp.task('p
@@ -1406,39 +1406,45 @@
 , %5B'
-uglify', 'nodemon', 'sass:watch
+sass:watch', 'uglify:watch', 'nodemon
 '%5D);

Gulp task uglify:watch