var browserify = require('browserify');
var fs = require('fs');
var glob = require('glob');

glob('test/**/*.test.js', function(err, files) {
  browserify(files)
    .transform('babelify')
    .transform('browserify-shim')
    .bundle()
    .pipe(fs.createWriteStream('dist-test/videojs-contrib-media-sources.js'));
});
