Created
August 15, 2014 11:00
-
-
Save jonsherrard/faca22626185c3363a36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var browserify = require('browserify'); | |
var hbsfy = require('hbsfy'); | |
var gulp = require('gulp'); | |
var handleErrors = require('../util/handleErrors'); | |
var source = require('vinyl-source-stream'); | |
var livereload = require('gulp-livereload'); | |
gulp.task('browserify', function(){ | |
return browserify({ | |
transform: [hbsfy], | |
entries: ['./src/scripts/app.coffee'], | |
extensions: ['.coffee', '.hbs', '.html'] | |
}) | |
.bundle({debug: true}) | |
.on('error', handleErrors) | |
.pipe(source('app.js')) | |
.pipe(gulp.dest('./js/')) | |
.pipe(livereload()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment