mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 02:09:22 +02:00
Moving to node_modules folder to make easier to upgrade
trying to move from Bootstrap 3 to Bootstrap 5
This commit is contained in:
parent
047e363a16
commit
d4d042e041
8460 changed files with 1355889 additions and 547977 deletions
58
node_modules/videojs-contrib-ads/scripts/karma.conf.js
generated
vendored
Normal file
58
node_modules/videojs-contrib-ads/scripts/karma.conf.js
generated
vendored
Normal file
|
@ -0,0 +1,58 @@
|
|||
const generate = require('videojs-generate-karma-config');
|
||||
|
||||
module.exports = function(config) {
|
||||
|
||||
// see https://github.com/videojs/videojs-generate-karma-config
|
||||
// for options
|
||||
const options = {
|
||||
preferHeadless: false,
|
||||
serverBrowser(defaults) {
|
||||
return ['autoplayDisabledChrome'];
|
||||
},
|
||||
travisLaunchers(defaults) {
|
||||
defaults.travisChrome.flags.push('--autoplay-policy=no-user-gesture-required');
|
||||
|
||||
return defaults;
|
||||
},
|
||||
customLaunchers(defaults) {
|
||||
return Object.assign(defaults, {
|
||||
autoplayDisabledChrome: {
|
||||
base: 'Chrome',
|
||||
flags: ['--autoplay-policy=no-user-gesture-required']
|
||||
}
|
||||
});
|
||||
},
|
||||
browsers(browsers) {
|
||||
if (process.env.TRAVIS) {
|
||||
return browsers;
|
||||
}
|
||||
const toKeep = ['Firefox', 'Chrome'];
|
||||
const filteredBrowsers = [];
|
||||
|
||||
browsers.forEach((e) => {
|
||||
if (e === 'Chrome') {
|
||||
filteredBrowsers.push('autoplayDisabledChrome');
|
||||
} else if (toKeep.indexOf(e) !== -1) {
|
||||
filteredBrowsers.push(e);
|
||||
}
|
||||
});
|
||||
|
||||
return filteredBrowsers;
|
||||
},
|
||||
files(defaults) {
|
||||
return [
|
||||
'node_modules/video.js/dist/video-js.css',
|
||||
'node_modules/lodash/lodash.js',
|
||||
'node_modules/sinon/pkg/sinon.js',
|
||||
'node_modules/video.js/dist/video.js',
|
||||
'dist/videojs-contrib-ads.js',
|
||||
'dist/videojs-contrib-ads.css',
|
||||
'test/dist/bundle.js'
|
||||
];
|
||||
}
|
||||
};
|
||||
|
||||
config = generate(config, options);
|
||||
|
||||
// any other custom stuff not supported by options here!
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue