mirror of
https://github.com/videojs/m3u8-parser.git
synced 2026-06-06 08:22:33 +00:00
Migrate all the test files from videojs-contrib-hls and the build script that exports them so they can be used in tests. Remove the checked-in versions of the exported m3u8 fixtures.
18 lines
431 B
JavaScript
18 lines
431 B
JavaScript
import browserify from 'browserify';
|
|
import fs from 'fs';
|
|
import glob from 'glob';
|
|
import exportM3u8s from './export-m3u8s';
|
|
|
|
// build modules for the test m3u8s
|
|
exportM3u8s.build();
|
|
|
|
glob('test/**/*.test.js', (err, files) => {
|
|
if (err) {
|
|
throw err;
|
|
}
|
|
browserify(files)
|
|
.transform('babelify')
|
|
.transform('browserify-shim', {global: true})
|
|
.bundle()
|
|
.pipe(fs.createWriteStream('test/dist/bundle.js'));
|
|
});
|