mirror of
https://github.com/mtan93/homebridge.git
synced 2026-04-04 06:13:13 +01:00
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:
17
bin/homebridge
Executable file
17
bin/homebridge
Executable 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')();
|
||||
Reference in New Issue
Block a user