Added gulp, and started using the file being built by gulp. Fixed some issues with remote control changing. Implemented clients being able to change password

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-24 17:24:44 +02:00
parent 6c2f115c4e
commit 7abd101118
1263 changed files with 132016 additions and 3351 deletions

19
server/gulpfile.js Normal file
View File

@@ -0,0 +1,19 @@
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('default', function(){
gulp.watch('../static/js/*.js', ['js']);
});