Plugin support

- Homebridge is now designed to be `npm install`d globally and
executed via "homebridge" script
  - Remove all specific accessories/platforms except for an example
  - New internal structure and "cli"
This commit is contained in:
Nick Farina
2015-10-18 16:34:21 -07:00
parent 6e5c35ec88
commit a3c0df1c7c
55 changed files with 675 additions and 13219 deletions

17
bin/homebridge Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env node
//
// This executable sets up the environment and runs the HomeBridge CLI.
//
'use strict';
process.title = 'homebridge';
// Find the HomeBridge lib
var path = require('path');
var fs = require('fs');
var lib = path.join(path.dirname(fs.realpathSync(__filename)), '../lib');
// Run HomeBridge
require(lib + '/cli')();