mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
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:
19
server/gulpfile.js
Normal file
19
server/gulpfile.js
Normal 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']);
|
||||
});
|
||||
Reference in New Issue
Block a user