var gulp = require('gulp'),
    exec = require('exec'),
    watch = require('gulp-watch');

const ADD = 'add';

var paths = {
  jobs: ['../uploads/**/*.fds'],
  parcel: ['../parcel.php']
};

//var runCommand = "php -r 'require \"" + paths.parcel + "\"; P::run();'";

gulp.task('jobs', function () {

});

gulp.task('watch', function() {
  watch(paths.jobs, function (vinyl) {
    if (vinyl.event == ADD)
      console.log("Houston, we have a new FDS job");
  });
});

gulp.task('default', ['watch']);

let gulp = require('gulp'),
    exec = require('exec'),
    watch = require('gulp-watch');

let ADD = 'add';

let paths = {
  jobs: ['../uploads/**/*.fds'],
  parcel: ['../parcel.php']
};

//var runCommand = "php -r 'require \"" + paths.parcel + "\"; P::run();'";

gulp.task('jobs', function () {

});

gulp.task('watch', function() {
  watch(paths.jobs, function (vinyl) {
    if (vinyl.event == ADD)
      console.log("Houston, we have a new FDS job");
  });
});

gulp.task('default', ['watch']);

Revert "Change let to var declarations"
Revert "Change let to var declarations"

This reverts commit d436fb04e59a6153c6186e1782f162faa73ccf11.
