HomeBridge Reboot

- New "homebridge" CLI
- Finds and loads locally-installed "providers" from user home dir
- Written in ES6 with babel/register
This commit is contained in:
Nick Farina
2015-07-07 18:40:23 -07:00
parent 05e17be277
commit ab2f25e736
27 changed files with 181 additions and 4013 deletions

16
bin/homebridge Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env node
'use strict';
process.title = 'homebridge';
// Use babel to transparently enable ES6 features
require("babel/register");
// Find the HomeBridge lib
var path = require('path');
var fs = require('fs');
var lib = path.join(path.dirname(fs.realpathSync(__filename)), '../lib');
// Run the HomeBridge CLI
require(lib + '/homebridge').cli();