var gulp = require('gulp');

var concat = require('gulp-concat');
var uglify = require('gulp-uglify');

var paths = {
  scripts: 'js/src/*js',
};

gulp.task('scripts', function() {
  'use strict';
  // Minify and copy all JavaScript (except vendor scripts)
  return gulp.src(paths.scripts)
    .pipe(uglify())
    .pipe(concat('all.min.js'))
    .pipe(gulp.dest('js/build'));
});

// Rerun the task when a file changes
gulp.task('watch', function() {
  'use strict';
  gulp.watch(paths.scripts, ['scripts']);
});

// The default task (called when you run `gulp` from cli)
gulp.task('default', ['scripts']);

@@ -123,16 +123,23 @@
 ripts: '
+public/
 js/src/*
@@ -363,16 +363,23 @@
 p.dest('
+public/
 js/build

Fix gulpfile build locations.