Gulp: task to move vendor scripts
Only videojs at the moment.
This commit is contained in:
parent
030c5494a8
commit
c1958d2da7
1
.gitignore
vendored
1
.gitignore
vendored
@ -27,6 +27,7 @@ profile.stats
|
|||||||
|
|
||||||
pillar/web/static/assets/css/*.css
|
pillar/web/static/assets/css/*.css
|
||||||
pillar/web/static/assets/js/*.min.js
|
pillar/web/static/assets/js/*.min.js
|
||||||
|
pillar/web/static/assets/js/vendor/video.min.js
|
||||||
pillar/web/static/storage/
|
pillar/web/static/storage/
|
||||||
pillar/web/static/uploads/
|
pillar/web/static/uploads/
|
||||||
pillar/web/templates/
|
pillar/web/templates/
|
||||||
|
14
gulpfile.js
14
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'
|
// While developing, run 'gulp watch'
|
||||||
gulp.task('watch',function() {
|
gulp.task('watch',function() {
|
||||||
// Only listen for live reloads if ran with --livereload
|
// Only listen for live reloads if ran with --livereload
|
||||||
@ -143,4 +156,5 @@ gulp.task('default', tasks.concat([
|
|||||||
'templates',
|
'templates',
|
||||||
'scripts',
|
'scripts',
|
||||||
'scripts_concat_tutti',
|
'scripts_concat_tutti',
|
||||||
|
'scripts_move_vendor',
|
||||||
]));
|
]));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user