mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-18 21:03:17 +00:00
Convert to ES5, add web server
* No compilation step * Beginnings of web interface * Simple express server; React-based frontend * CommonJS style across codebase; auto-converts to RequireJS for browser * Using diffsync for realtime UI * "Provider" -> "Plugin" * Plugins expose one or more Providers
This commit is contained in:
@@ -8,16 +8,10 @@
|
||||
|
||||
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');
|
||||
|
||||
// Export HomeBridge as a global for providers
|
||||
global.homebridge = require(lib + '/homebridge');
|
||||
|
||||
// Run the HomeBridge CLI
|
||||
require(lib + '/cli')();
|
||||
// Run HomeBridge
|
||||
require(lib + '/cli')();
|
||||
Reference in New Issue
Block a user