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