diff options
author | Noah Loomans <noahloomans@gmail.com> | 2016-09-04 22:17:14 +0200 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2016-09-04 22:17:14 +0200 |
commit | fd7262bebcd6aff7e3ad229bd9e737816a2b23bc (patch) | |
tree | 6b82b7ee03e6d4c3083aff436cf2a9543af46a2a /gulpfile.js |
Init commit
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 17 |
1 files changed, 17 insertions, 0 deletions
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') +}) |