You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
431 B
19 lines
431 B
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'));
|
|
});
|