Files
zoff/server/gulpfile.js
Kasper Rynning-Tønnesen 28ee75c750 Added gulp task for nochan also
2015-06-24 19:51:11 +02:00

31 lines
872 B
JavaScript

var gulp = require('gulp'),
gutil = require('gulp-util'),
uglify = require('gulp-uglifyjs'),
concat = require('gulp-concat');
gulp.task('js', function () {
gulp.src(['../static/js/*.js', '!../static/js/nochan*', '!../static/js/remotecontroller.js'])
.pipe(uglify({
mangle: true,
compress: true,
enclose: true
}))
.pipe(concat('main.js'))
.pipe(gulp.dest('../static/build-js'));
});
gulp.task('nochan', function () {
gulp.src(['../static/js/nochan.js'])
.pipe(uglify({
mangle: true,
compress: true,
enclose: true
}))
.pipe(concat('main-fp.js'))
.pipe(gulp.dest('../static/build-js'));
});
gulp.task('default', function(){
gulp.watch('../static/js/*.js', ['js']);
gulp.watch('../static/js/nochan.js', ['nochan']);
});