 #****************************
 gulp.task "jade", ->
   YOUR_LOCALS = {}
-  gulp.src(pkg.settings.app+"/jade/*.jade")
-  .pipe($.plumber({errorHandler: $.notify.onError('<%= error.message %>')}))
-  .pipe($.data((file)->
+  gulp.src pkg.settings.app+"/jade/*.jade"
+  .pipe $.plumber({errorHandler: $.notify.onError('<%= error.message %>')})
+  .pipe $.data (file)->
     if file
       reg = /\/([A-Za-z_0-9]+?)\.jade/
       path = file.path.match(reg)[1]

  # .pipe $.uglify()
  .pipe gulp.dest pkg.settings.dist+"js/" # Output directory
  .pipe gulp.dest pkg.name+'/www/wordpress/wp-content/themes/'+pkg.name+'/js/'


# VanillaJS



  gulp.watch "app/**/*.jade", ["jade"]
  # gulp.watch "app/**/*.scss", ['styleguide']
  gulp.watch "app/**/*.scss", ["scss"]
  gulp.watch "app/**/*.js", ["js"]
