calvarium / homebridge-lifx-plugin

A plugin that adds lifx-lights in the network automatically to the homebridge, also single lights can be added manually
Apache License 2.0
31 stars 10 forks source link

How do I install a fork of this plugin so I can fix bugs? #29

Open lox opened 1 year ago

lox commented 1 year ago

I'm trying to fix #27, but I'm stuck on installing my fork.

Current approach is to run this in the Homebridge console:

npm install github:lox/homebridge-lifx-plugin
cd node_modules/homebridge-lifx-plugin/ && npm install && npm run build

But strangely there is no src in node_modules/homebridge-lifx-plugin/. Any ideas what I am doing wrong here?

bradrees commented 1 year ago

Not sure if you sorted this out already, you need a prepare statement that will build the dist folder after installing from git using npm, otherwise the src files are not included and you can't build.

Add this to the package.json in scripts after the prepublishOnly script

"prepublishOnly": "npm run lint && npm run build", "prepare": "npm run build"