mirror of https://github.com/calzoneman/sync.git
40 lines
821 B
JavaScript
Executable File
40 lines
821 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
var coffee = require('coffeescript');
|
|
var fs = require('fs');
|
|
var path = require('path');
|
|
|
|
var order = [
|
|
'base.coffee',
|
|
'vimeo.coffee',
|
|
'youtube.coffee',
|
|
'dailymotion.coffee',
|
|
'videojs.coffee',
|
|
'playerjs.coffee',
|
|
'streamable.coffee',
|
|
'gdrive-player.coffee',
|
|
'raw-file.coffee',
|
|
'soundcloud.coffee',
|
|
'embed.coffee',
|
|
'twitch.coffee',
|
|
'livestream.com.coffee',
|
|
'custom-embed.coffee',
|
|
'rtmp.coffee',
|
|
'hls.coffee',
|
|
'twitchclip.coffee',
|
|
'peertube.coffee',
|
|
'update.coffee'
|
|
];
|
|
|
|
var buffer = '';
|
|
order.forEach(function (file) {
|
|
buffer += fs.readFileSync(
|
|
path.join(__dirname, '..', 'player', file)
|
|
) + '\n';
|
|
});
|
|
|
|
fs.writeFileSync(
|
|
path.join(__dirname, '..', 'www', 'js', 'player.js'),
|
|
coffee.compile(buffer)
|
|
);
|