First release
This commit is contained in:
commit
fa6c85266e
2339 changed files with 761050 additions and 0 deletions
25
node_modules/mux.js/scripts/karma.conf.js
generated
vendored
Normal file
25
node_modules/mux.js/scripts/karma.conf.js
generated
vendored
Normal 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
20
node_modules/mux.js/scripts/netlify.js
generated
vendored
Normal 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');
|
54
node_modules/mux.js/scripts/rollup.config.js
generated
vendored
Normal file
54
node_modules/mux.js/scripts/rollup.config.js
generated
vendored
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue