Added export to youtube and improved importing from YouTube

This commit is contained in:
Kasper Rynning-Tønnesen
2016-09-05 13:36:21 +02:00
parent d5acdb2161
commit c6d6270c4a
14 changed files with 383 additions and 168 deletions

View File

@@ -4,7 +4,7 @@ var gulp = require('gulp'),
concat = require('gulp-concat');
gulp.task('js', function () {
gulp.src(['static/js/*.js', '!static/js/embed*', '!static/js/remotecontroller.js', '!static/js/spotify.js'])
gulp.src(['static/js/*.js', '!static/js/embed*', '!static/js/remotecontroller.js', '!static/js/callback.js'])
.pipe(uglify({
mangle: true,
compress: true,
@@ -25,14 +25,14 @@ gulp.task('embed', function () {
.pipe(gulp.dest('static/dist'));
});
gulp.task('spotify', function () {
gulp.src(['static/js/spotify.js'])
gulp.task('callback', function () {
gulp.src(['static/js/callback.js'])
.pipe(uglify({
mangle: true,
compress: true,
enclose: true
}))
.pipe(concat('spotify.min.js'))
.pipe(concat('callback.min.js'))
.pipe(gulp.dest('static/dist'));
});
@@ -62,7 +62,7 @@ gulp.task('remotecontroller', function () {
gulp.task('default', function(){
gulp.watch('static/js/*.js', ['js']);
gulp.watch('static/js/*.js', ['embed']);
gulp.watch(['static/js/spotify.js', 'static/js/helpers.js'], ['spotify']);
gulp.watch(['static/js/callback.js', 'static/js/helpers.js'], ['callback']);
//gulp.watch('static/js/*.js', ['nochan']);
gulp.watch('static/js/remotecontroller.js', ['remotecontroller']);
});