mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-08 05:31:55 +00:00
* 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
18 lines
537 B
JavaScript
18 lines
537 B
JavaScript
var program = require('commander');
|
|
var version = require('./version');
|
|
var Server = require('./server').Server;
|
|
var Plugin = require('./Plugin').Plugin;
|
|
|
|
'use strict';
|
|
|
|
module.exports = function() {
|
|
|
|
program
|
|
.version(version)
|
|
.option('-P, --plugin-path [path]', 'look for plugins installed at [path] as well as node_modules', function(p) { Plugin.addPluginPath(p); })
|
|
.option('-D, --debug', 'turn on debug level logging', function() { logger.setDebugEnabled(true) })
|
|
.parse(process.argv);
|
|
|
|
new Server().run();
|
|
}
|