mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-08 05:31:55 +00:00
- 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"
17 lines
342 B
JavaScript
Executable File
17 lines
342 B
JavaScript
Executable File
#!/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')(); |