Skip to content

Instantly share code, notes, and snippets.

@spikebrehm
Created January 14, 2014 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spikebrehm/8424237 to your computer and use it in GitHub Desktop.
Save spikebrehm/8424237 to your computer and use it in GitHub Desktop.
var gulp = require('gulp')
, browserify = require('gulp-browserify')
, hbsfy = require('hbsfy')
;
gulp.task('scripts', function() {
return gulp.src('./js/main.js')
.pipe(browserify({
debug: true,
transform: ['hbsfy'],
}))
.pipe(gulp.dest('./build/'));
});
gulp.task('default', function() {
gulp.run('scripts');
gulp.watch('./js/**/*.js', function() {
gulp.run('scripts');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment