Bump browserslist from 4.16.3 to 4.16.6
[KisSync.git] / bin / build-player.js
blob2de0ebc9825265c03e1b8c490fde843c5b758242
1 #!/usr/bin/env node
3 var coffee = require('coffeescript');
4 var fs = require('fs');
5 var path = require('path');
7 var order = [
8     'base.coffee',
9     'vimeo.coffee',
10     'youtube.coffee',
11     'dailymotion.coffee',
12     'videojs.coffee',
13     'playerjs.coffee',
14     'streamable.coffee',
15     'gdrive-player.coffee',
16     'raw-file.coffee',
17     'soundcloud.coffee',
18     'embed.coffee',
19     'twitch.coffee',
20     'livestream.com.coffee',
21     'custom-embed.coffee',
22     'rtmp.coffee',
23     'smashcast.coffee',
24     'ustream.coffee',
25     'imgur.coffee',
26     'gdrive-youtube.coffee',
27     'hls.coffee',
28     'twitchclip.coffee',
29     'update.coffee'
32 var buffer = '';
33 order.forEach(function (file) {
34     buffer += fs.readFileSync(
35         path.join(__dirname, '..', 'player', file)
36     ) + '\n';
37 });
39 fs.writeFileSync(
40     path.join(__dirname, '..', 'www', 'js', 'player.js'),
41     coffee.compile(buffer)