var gulp = require('gulp'); var elm = require('gulp-elm'); var gutil = require('gulp-util'); gulp.task('default', ['make'], function() { }); gulp.task('make', function() { return gulp .src('client/src/MassiveDecks/Main.elm') .pipe( elm({filetype: 'js'}) ).on('error', gutil.log) .pipe( gulp.dest('server/public/javascripts') ) }); gulp.task('watch', function () { gulp.watch('client/src/**/*.elm', ['make']); });