This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Closed
Node JS dependencies
Dear Developers,
I was looking at the created Homey Apps on Github and i was wondering how dependencies are managed throughout Apps. The library itself has a package.json defining dependencies. But others have complete libraries checked into the repository (example).
Mainly the second part looks a bit odd to me.
Any insights?
I was looking at the created Homey Apps on Github and i was wondering how dependencies are managed throughout Apps. The library itself has a package.json defining dependencies. But others have complete libraries checked into the repository (example).
Mainly the second part looks a bit odd to me.
Any insights?
This discussion has been closed.
Comments
To follow up on that, a Homey app has a app.json wich consists of Homey specific information but also some features used in a standard package.json. Like dependencies, But npm can't read an app.json file by default. What workflow do you use to pull dependencies or later on update a dependency on an existing project.