a2a34318 by brandonocasey

fixing directory creation for test/data and steam inclusion typo in stub.js

1 parent c27f999c
var fs = require('fs');
var path = require('path');
var shelljs = require('shelljs');
var basePath = path.resolve(__dirname + '/..');
var testDataDir = basePath + '/test/data';
var manifestDir = basePath + '/utils/manifest';
var manifestFilepath = testDataDir + '/manifests.js';
var expectedFilepath = testDataDir + '/expected.js';
var basePath = path.resolve(__dirname, '..');
var testDataDir = path.join(basePath,'test', 'data');
var manifestDir = path.join(basePath, 'utils', 'manifest');
var manifestFilepath = path.join(testDataDir, 'manifests.js');
var expectedFilepath = path.join(testDataDir, 'expected.js');
var build = function() {
var manifests = 'export default {\n';
var expected = 'export default {\n';
shelljs.mkdir('-p', testDataDir);
var files = fs.readdirSync(manifestDir);
while (files.length > 0) {
var file = path.resolve(manifestDir, files.shift());
......
import m3u8 from './m3u8';
import Stream from './Stream';
import Stream from './stream';
import videojs from 'video.js';
if(typeof window.videojs.Hls === 'undefined') {
......