diff options
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') +}) |