2015-07-01 16:38:01 +00:00
|
|
|
var coffee = require('coffee-script');
|
|
|
|
var fs = require('fs');
|
|
|
|
var path = require('path');
|
|
|
|
|
|
|
|
var order = [
|
|
|
|
'base.coffee',
|
|
|
|
'vimeo.coffee',
|
|
|
|
'youtube.coffee',
|
|
|
|
'dailymotion.coffee',
|
|
|
|
'videojs.coffee',
|
|
|
|
'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',
|
|
|
|
'hitbox.coffee',
|
|
|
|
'ustream.coffee',
|
|
|
|
'imgur.coffee',
|
2015-09-16 06:32:01 +00:00
|
|
|
'gdrive-youtube.coffee',
|
2015-07-01 16:38:01 +00:00
|
|
|
'update.coffee'
|
|
|
|
];
|
|
|
|
|
|
|
|
var buffer = '';
|
|
|
|
order.forEach(function (file) {
|
|
|
|
buffer += fs.readFileSync(path.join('player', file)) + '\n';
|
|
|
|
});
|
|
|
|
|
|
|
|
fs.writeFileSync(path.join('www', 'js', 'player.js'), coffee.compile(buffer));
|