aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
blob: b0bc0d75ae28fa269679472626dd2940393a52ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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')
})