Gulp: task to move vendor scripts

Only videojs at the moment.
This commit is contained in:
Pablo Vazquez 2018-09-14 01:57:55 +02:00
parent 030c5494a8
commit c1958d2da7
2 changed files with 15 additions and 0 deletions

1
.gitignore vendored
View File

@ -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/

View File

@ -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',
]));