Update gulpfile to bundle tovnode.js too

pull/230/merge
Andre Staltz 8 years ago
parent 69a6ab7f0b
commit 2135b65b30
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890

@ -24,6 +24,10 @@ gulp.task('bundle:snabbdom:h', function() {
return standalone('h', './h.js') return standalone('h', './h.js')
}) })
gulp.task('bundle:snabbdom:tovnode', function() {
return standalone('tovnode', './tovnode.js')
})
gulp.task('bundle:module:class', function() { gulp.task('bundle:module:class', function() {
return standalone('snabbdom_class', './modules/class.js') return standalone('snabbdom_class', './modules/class.js')
}) })
@ -48,6 +52,7 @@ gulp.task('bundle', [
'bundle:snabbdom', 'bundle:snabbdom',
'bundle:snabbdom:init', 'bundle:snabbdom:init',
'bundle:snabbdom:h', 'bundle:snabbdom:h',
'bundle:snabbdom:tovnode',
'bundle:module:attributes', 'bundle:module:attributes',
'bundle:module:class', 'bundle:module:class',
'bundle:module:props', 'bundle:module:props',
@ -57,16 +62,16 @@ gulp.task('bundle', [
gulp.task('compress', ['bundle'], function() { gulp.task('compress', ['bundle'], function() {
return gulp.src(['dist/*.js', '!dist/*.min.js']) return gulp.src(['dist/*.js', '!dist/*.min.js'])
.pipe(sourcemaps.init()) .pipe(sourcemaps.init())
.pipe(uglify()) .pipe(uglify())
.pipe(rename({ suffix: '.min' })) .pipe(rename({ suffix: '.min' }))
.pipe(sourcemaps.write('.')) .pipe(sourcemaps.write('.'))
.pipe(gulp.dest('dist')) .pipe(gulp.dest('dist'))
}) })
gulp.task('clean', function() { gulp.task('clean', function() {
return gulp.src('dist/*.*', {read: false}) return gulp.src('dist/*.*', {read: false})
.pipe(clean()) .pipe(clean())
}) })
gulp.task('default', ['bundle']) gulp.task('default', ['bundle'])

Loading…
Cancel
Save