browserify things

This commit is contained in:
Keegan
2015-10-12 11:57:01 -07:00
parent 53e49339b5
commit 1d0d179429
5 changed files with 19 additions and 15 deletions
+11 -2
View File
@@ -31,7 +31,16 @@ gulp.task('inlineHtml', ['clean', 'browserify'], function() {
jsSelector: 'script[uglify]'
}))
.pipe(minifyHTML())
.pipe(gulp.dest('dist/'));
.pipe(gulp.dest('tmp/'));
});
gulp.task('default', ['inlineHtml']);
gulp.task('clay', ['inlineHtml'], function() {
return browserify('index.js', { debug: false })
.transform(stringify(['.html', '.mustache']))
.require(require.resolve('./index'), {expose: 'pebble-clay'})
.bundle()
.pipe(source('clay.js'))
.pipe(gulp.dest('./dist/'));
});
gulp.task('default', ['clay']);