Compile coffee files and remove them

With,

  ./node_modules/.bin/coffee -b -c Cakefile `find . -path ./node_modules -prune -o -name '*.coffee'`
This commit is contained in:
Arlo Breault 2019-07-06 15:13:06 +02:00
parent 82562fb21d
commit 31ad9566e6
38 changed files with 2277 additions and 1725 deletions

27
proxy/init-node.js Normal file
View file

@ -0,0 +1,27 @@
// Generated by CoffeeScript 2.4.1
/*
Entry point.
*/
var broker, config, dbg, log, snowflake, ui;
config = new Config;
ui = new UI();
broker = new Broker(config.brokerUrl);
snowflake = new Snowflake(config, ui, broker);
log = function(msg) {
return console.log('Snowflake: ' + msg);
};
dbg = log;
log('== snowflake proxy ==');
dbg('Contacting Broker at ' + broker.url);
snowflake.setRelayAddr(config.relayAddr);
snowflake.beginWebRTC();