var gulp = require('gulp');
    uglify=require('gulp-uglify'),
    sass=require('sass')
    ;

//Scripts task
//Uglifies.
gulp.task('scripts', function(){
    gulp.src('src/*.js')
    .pipe(uglify())
    .pipe(gulp.dest('build/js'))
});

//Styles task
//Uglifies
gulp.task('styles', function(){
    gulp.src('src/sass/**/*.scss')
    .pipe(sass())
    .pipe(gulp.dest('css/'))

});

//Watch task
//Watches js
gulp.task('watch', function(){
    gulp.watch('src/*.js',['scripts'])
});


gulp.task('default', ['scripts','styles','watch']);
   
var gulp = require('gulp');
    uglify=require('gulp-uglify')
    ;

//Scripts task
gulp.task('scripts', function(){
    gulp.src('src/js/**/*.js')
    .pipe(gulp.dest('src/js'));
});

//Watch task
//Watches js
gulp.task('watch', function(){
    gulp.watch('src/js/**/*.js',['scripts'])
});

//Default task that runs all the scripts at the same time
gulp.task('default', ['scripts','watch']);
   
Change the destination of the js file
Change the destination of the js file
