diff --git a/.gitignore b/.gitignore index 97fc5389..9e14402d 100644 --- a/.gitignore +++ b/.gitignore @@ -27,6 +27,7 @@ profile.stats pillar/web/static/assets/css/*.css pillar/web/static/assets/js/*.min.js +pillar/web/static/assets/js/vendor/video.min.js pillar/web/static/storage/ pillar/web/static/uploads/ pillar/web/templates/ diff --git a/gulpfile.js b/gulpfile.js index 275f3fba..5ce8230d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -107,6 +107,19 @@ gulp.task('scripts_concat_tutti', function() { }); +/* Simply move these vendor scripts from node_modules. */ +gulp.task('scripts_move_vendor', function(done) { + + let toMove = [ + 'node_modules/video.js/dist/video.min.js', + ]; + + gulp.src(toMove) + .pipe(gulp.dest(destination.js + '/vendor/')); + done(); +}); + + // While developing, run 'gulp watch' gulp.task('watch',function() { // Only listen for live reloads if ran with --livereload @@ -143,4 +156,5 @@ gulp.task('default', tasks.concat([ 'templates', 'scripts', 'scripts_concat_tutti', + 'scripts_move_vendor', ]));