From fd7262bebcd6aff7e3ad229bd9e737816a2b23bc Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Sun, 4 Sep 2016 22:17:14 +0200 Subject: Init commit --- gulpfile.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 gulpfile.js (limited to 'gulpfile.js') diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 0000000..b0bc0d7 --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,17 @@ +const gulp = require('gulp') +const browserify = require('gulp-browserify') + +// Basic usage +gulp.task('scripts', function () { + // Single entry point to browserify + gulp.src('public/javascripts/main.js') + .pipe(browserify({ + insertGlobals: true, + debug: !gulp.env.production + })) + .pipe(gulp.dest('public/javascripts/bundle.js')) +}) + +gulp.task('scripts:watch', function () { + return gulp.watch('public/javascripts/**/*.js') +}) -- cgit v1.1