2018-01-07 23:42:08 +00:00
|
|
|
#!/usr/bin/env node
|
|
|
|
|
|
|
|
var coffee = require('coffeescript');
|
2015-07-01 16:38:01 +00:00
|
|
|
var fs = require('fs');
|
|
|
|
var path = require('path');
|
|
|
|
|
|
|
|
var order = [
|
|
|
|
'base.coffee',
|
|
|
|
'vimeo.coffee',
|
|
|
|
'youtube.coffee',
|
|
|
|
'dailymotion.coffee',
|
|
|
|
'videojs.coffee',
|
2017-09-26 01:55:58 +00:00
|
|
|
'playerjs.coffee',
|
|
|
|
'streamable.coffee',
|
2016-08-16 04:00:56 +00:00
|
|
|
'gdrive-player.coffee',
|
2015-07-01 16:38:01 +00:00
|
|
|
'raw-file.coffee',
|
|
|
|
'soundcloud.coffee',
|
|
|
|
'embed.coffee',
|
2015-07-05 21:04:21 +00:00
|
|
|
'twitch.coffee',
|
2015-07-05 21:00:59 +00:00
|
|
|
'livestream.com.coffee',
|
2015-07-01 16:38:01 +00:00
|
|
|
'custom-embed.coffee',
|
|
|
|
'rtmp.coffee',
|
2017-05-20 23:50:00 +00:00
|
|
|
'smashcast.coffee',
|
2015-07-01 16:38:01 +00:00
|
|
|
'ustream.coffee',
|
|
|
|
'imgur.coffee',
|
2015-09-16 06:32:01 +00:00
|
|
|
'gdrive-youtube.coffee',
|
2016-08-07 04:14:52 +00:00
|
|
|
'hls.coffee',
|
2015-07-01 16:38:01 +00:00
|
|
|
'update.coffee'
|
|
|
|
];
|
|
|
|
|
|
|
|
var buffer = '';
|
|
|
|
order.forEach(function (file) {
|
2018-04-06 03:48:59 +00:00
|
|
|
buffer += fs.readFileSync(
|
|
|
|
path.join(__dirname, '..', 'player', file)
|
|
|
|
) + '\n';
|
2015-07-01 16:38:01 +00:00
|
|
|
});
|
|
|
|
|
2018-04-06 03:48:59 +00:00
|
|
|
fs.writeFileSync(
|
|
|
|
path.join(__dirname, '..', 'www', 'js', 'player.js'),
|
|
|
|
coffee.compile(buffer)
|
|
|
|
);
|