cozy / cozy-home-v2

This repository was part of CozyV2 which has been deprecated
https://blog.cozycloud.cc/post/2016/11/21/On-the-road-to-Cozy-version-3
GNU Affero General Public License v3.0
94 stars 53 forks source link

Allow manual installation of apps by npm package name #772

Open bnjbvr opened 8 years ago

bnjbvr commented 8 years ago

The manual installation allows you to enter a Github URL and then retrieves information from this package, shows them to the user and allows installation on the cozy. It would be neat to be able to do the same with apps packaged as npm packages (as in, using the newer package field in the cozy-registry descriptor). This would in particular allow testing external apps for the new npm packaging method.

I don't have any specific idea for the UI:

Crafting the app manifest from the npm package name shouldn't be too hard; I don't know how to retrieve app metadata (description and permission) in that case, though.

nono commented 8 years ago

Thanks for the suggestion!

I don't know how to retrieve app metadata (description and permission) in that case, though.

We already do that -> https://github.com/cozy/cozy-home/blob/master/server/lib/manifest.coffee#L85-L98