 
 basePath = '.'
 src      = "#{basePath}/src"
-output   = "#{basePath}/public"
+output   = "#{basePath}/public/static"
 dist     = "#{basePath}/dist"
 test     = "#{basePath}/test"
-vendor   = "#{sources}/vendor"
+vendor   = "#{src}/vendor"
 port     = 3000
 
 
 
 
 #--------------------------------------------------------
-# Bower / Vendor Concatenation/Minification
+# Copy Bower libraries to vendor directory
 #--------------------------------------------------------
 
 
 gulp.task "bower", ->
    bowerFiles()
-      #.pipe concat("vendor.js")
-      .pipe gulp.dest("#{output}/assets/scripts")
+      .pipe gulp.dest "#{vendor}"
+
+
+
+
+#--------------------------------------------------------
+# Compile scripts using Browserify
+#--------------------------------------------------------
+
+
+gulp.task "browserify", ->
+   gulp.src "#{src}/scripts/app.coffee", read: false
+      .pipe browserify
+         transform:  ["coffeeify"]
+         extensions: [".coffee", ".js"]
+
+      .pipe rename "app.js"
+      .pipe gulp.dest "#{output}/assets/scripts"
 
 
 


gulp         = require 'gulp'
autoprefixer = require 'gulp-autoprefixer'
bower        = require 'gulp-bower'
browserify   = require 'gulp-browserify'
concat       = require 'gulp-concat'
connect      = require 'gulp-connect'
clean        = require 'gulp-clean'

 * Development tasks
 *
 * @author  Christopher Pappas & Matthew Fordham
 * @date    6.4.14
 *
 * Primary Tasks:
 *    gulp dev   : Development mode, file-watcher
