'use strict';

var gulp = require('gulp');
var uglify = require('gulp-uglify');
var sourcemaps = require('gulp-sourcemaps');
var rename = require('gulp-rename');
var gutil = require('gulp-util');
var sass = require('gulp-sass');
var autoprefixer = require('gulp-autoprefixer');

gulp.task('default', ['javascript', 'sass']);

gulp.task('javascript', function() {
  return gulp.src('src/backbone.hexer.js')
      // This will output the non-minified version
      .pipe(gulp.dest('./'))
      // Initialise sourcemaps for minified js
      .pipe(sourcemaps.init({loadMaps: true}))
      // This will minify and rename to .min.js
      .pipe(uglify())
      .on('error', gutil.log)
      .pipe(rename({ extname: '.min.js' }))
      // Write the sourcemap
      .pipe(sourcemaps.write('./'))
      .pipe(gulp.dest('./'));
});

gulp.task('sass', function () {
    gulp.src('./src/*.scss')
        .pipe(sourcemaps.init())
        .pipe(autoprefixer())
        .pipe(sass())
        .pipe(sourcemaps.write('.'))
        .pipe(gulp.dest('./'));
});
@@ -330,26 +330,21 @@
 p.task('
-javascript
+watch
 ', funct
@@ -357,135 +357,487 @@
 %7B%0A  
-return gulp.src('src/backbone.hexer.js')%0A      // This will output the non-minified version%0A      .pipe(gulp.dest('./')
+var jsWatcher   = gulp.watch('backbone.hexer.js', %5B'javascript'%5D);%0A  var sassWatcher = gulp.watch('src/*.scss', %5B'sass'%5D);%0A%0A  jsWatcher.on('change', function(event) %7B%0A    console.log('File ' + event.path + ' was ' + event.type + ', running tasks...');%0A  %7D);%0A  sassWatcher.on('change', function(event) %7B%0A    console.log('File ' + event.path + ' was ' + event.type + ', running tasks...');%0A  %7D);%0A%7D);%0A%0Agulp.task('javascript', function() %7B%0A  return gulp.src('backbone.hexer.js'
 )%0A    
- 
- 
 // I
@@ -873,18 +873,16 @@
 fied js%0A
-  
     .pip
@@ -922,18 +922,16 @@
 %7D))%0A    
- 
- 
 // This 
@@ -964,26 +964,24 @@
 .min.js%0A    
-  
 .pipe(uglify
@@ -988,18 +988,16 @@
 ())%0A    
- 
- 
 .on('err
@@ -1012,18 +1012,16 @@
 il.log)%0A
-  
     .pip
@@ -1058,18 +1058,16 @@
 %7D))%0A    
- 
- 
 // Write
@@ -1081,18 +1081,16 @@
 urcemap%0A
-  
     .pip
@@ -1115,26 +1115,24 @@
 ('./'))%0A    
-  
 .pipe(gulp.d
@@ -1182,17 +1182,22 @@
  () %7B%0A  
- 
+return
  gulp.sr
@@ -1214,28 +1214,24 @@
 .scss')%0A    
-   
- 
 .pipe(source
@@ -1243,28 +1243,24 @@
 init())%0A    
-  
-  
 .pipe(autopr
@@ -1265,28 +1265,24 @@
 prefixer())%0A
-    
     .pipe(sa
@@ -1287,28 +1287,24 @@
 sass())%0A    
- 
-   
 .pipe(source
@@ -1320,20 +1320,16 @@
 e('.'))%0A
-    
     .pip

Move backbone.hexer.js into the project root to remove confusion, and add a watch task to gulpfile.js.