Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lox opened this issue Apr 6, 2023 · 1 comment
Open

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

lox opened this issue Apr 6, 2023 · 1 comment
Labels
question Further information is requested

Comments

@lox
Copy link
Contributor

lox commented Apr 6, 2023

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?

@lox lox added the question Further information is requested label Apr 6, 2023
@bradrees
Copy link
Contributor

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants