1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 17:59:55 +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:
Daniel 2021-10-26 14:52:45 -03:00
parent 047e363a16
commit d4d042e041
8460 changed files with 1355889 additions and 547977 deletions

25
node_modules/mux.js/scripts/karma.conf.js generated vendored Normal file
View file

@ -0,0 +1,25 @@
const generate = require('videojs-generate-karma-config');
module.exports = function(config) {
// see https://github.com/videojs/videojs-generate-karma-config
// for options
const options = {
coverage: false,
browsers(aboutToRun) {
return aboutToRun.filter(function(launcherName) {
return !(/^Safari/).test(launcherName);
});
},
browserstackLaunchers(defaults) {
delete defaults.bsSafariMojave;
delete defaults.bsSafariElCapitan;
return defaults;
}
};
config = generate(config, options);
// any other custom stuff not supported by options here!
};

20
node_modules/mux.js/scripts/netlify.js generated vendored Normal file
View file

@ -0,0 +1,20 @@
const shell = require('shelljs');
// clone vhs
shell.exec('git clone https://github.com/videojs/http-streaming');
shell.cd('http-streaming');
// install vhs and link in the local version of mux.js
shell.exec('npm ci');
shell.exec('npm link ../');
// run the vhs netlify script so that we can use
// the vhs netlify page with this local mux.js
shell.exec('npm run netlify');
// move the vhs deploy directory to the project root
shell.cp('-R', 'deploy', '../');
// cleanup by removing the cloned vhs directory
shell.cd('..');
shell.rm('-rf', 'http-streaming');

25
node_modules/mux.js/scripts/node-test.js generated vendored Normal file
View file

@ -0,0 +1,25 @@
/* eslint-disable no-console */
const path = require('path');
const spawn = require('child_process').spawn;
const major = parseInt(process.versions.node.split('.')[0], 10);
const qunitBinary = require.resolve('qunit/bin/qunit.js');
if (major < 10) {
console.error('Cannot run tests on node < 10, please update');
process.exit(1);
}
let args = [qunitBinary, 'test/dist/bundle.js'];
if (major === 10) {
args = ['node', '--experimental-worker'].concat(args);
}
const child = spawn(args[0], args.slice(1), {
cwd: path.join(__dirname, '..'),
stdio: 'inherit'
});
child.on('close', (code) => {
process.exit(code);
});

54
node_modules/mux.js/scripts/rollup.config.js generated vendored Normal file
View file

@ -0,0 +1,54 @@
const generate = require('videojs-generate-rollup-config');
const dataFiles = require('rollup-plugin-data-files');
const worker = require('rollup-plugin-worker-factory');
// see https://github.com/videojs/videojs-generate-rollup-config
// for options
const shared = {
primedPlugins(defaults) {
defaults = Object.assign(defaults, {
dataFiles: dataFiles({
segments: {include: 'test/segments/**'}
})
});
defaults.worker = worker({plugins: [
defaults.resolve,
defaults.json,
defaults.commonjs,
defaults.babel
]});
return defaults;
},
plugins(defaults) {
defaults.module.splice(2, 0, 'worker');
defaults.browser.splice(2, 0, 'worker');
defaults.test.splice(3, 0, 'worker');
defaults.test.splice(0, 0, 'dataFiles');
// istanbul is only in the list for regular builds and not watch
if (defaults.test.indexOf('istanbul') !== -1) {
defaults.test.splice(defaults.test.indexOf('istanbul'), 1);
}
return defaults;
}
};
const mainBuilds = generate(Object.assign({input: 'lib/index.js', distName: 'mux', exportName: 'muxjs'}, shared)).builds;
const mp4Builds = generate({input: 'lib/mp4/index.js', distName: 'mux-mp4', exportName: 'muxjs'}).builds;
const flvBuilds = generate({input: 'lib/flv/index.js', distName: 'mux-flv', exportName: 'muxjs'}).builds;
const allBuilds = [];
if (mainBuilds.test) {
allBuilds.push(mainBuilds.test);
}
if (mainBuilds.browser) {
allBuilds.push(mainBuilds.browser, mp4Builds.browser, flvBuilds.browser);
}
// export the builds to rollup
export default allBuilds;