improve UI builds

This commit is contained in:
Thibault Duplessis 2014-11-08 08:45:07 +01:00
parent f07c2659a8
commit 552789dc97
3 changed files with 30 additions and 3 deletions

View file

@ -31,6 +31,15 @@ gulp.task('prod', function() {
});
gulp.task('dev', function() {
return browserify('./src/main.js', {
standalone: standalone
}).bundle()
.on('error', onError)
.pipe(source('lichess.editor.js'))
.pipe(gulp.dest(destination));
});
gulp.task('watch', function() {
var opts = watchify.args;
opts.debug = true;
opts.standalone = standalone;
@ -49,4 +58,4 @@ gulp.task('dev', function() {
return rebundle();
});
gulp.task('default', ['dev']);
gulp.task('default', ['watch']);

View file

@ -31,6 +31,15 @@ gulp.task('prod', function() {
});
gulp.task('dev', function() {
return browserify('./src/main.js', {
standalone: standalone
}).bundle()
.on('error', onError)
.pipe(source('lichess.puzzle.js'))
.pipe(gulp.dest(destination));
});
gulp.task('watch', function() {
var opts = watchify.args;
opts.debug = true;
opts.standalone = standalone;
@ -49,4 +58,4 @@ gulp.task('dev', function() {
return rebundle();
});
gulp.task('default', ['dev']);
gulp.task('default', ['watch']);

View file

@ -31,6 +31,15 @@ gulp.task('prod', function() {
});
gulp.task('dev', function() {
return browserify('./src/main.js', {
standalone: standalone
}).bundle()
.on('error', onError)
.pipe(source('lichess.round.js'))
.pipe(gulp.dest(destination));
});
gulp.task('watch', function() {
var opts = watchify.args;
opts.debug = true;
opts.standalone = standalone;
@ -49,4 +58,4 @@ gulp.task('dev', function() {
return rebundle();
});
gulp.task('default', ['dev']);
gulp.task('default', ['watch']);