Open calumapplepie opened 4 years ago
For ruby, there is gem2deb similar to npm2deb and dh-make-ruby similar to your idea as commands. I think we can create dh-make-nodejs command which can be run inside a directory. This way we can use the same command to update existing packages when npm2deb has new features.
I'd definitely appreciate and use that solution, but I won't be able to implement it myself.
On Wed, Apr 29, 2020 at 3:04 PM Pirate Praveen Arimbrathodiyil < notifications@github.com> wrote:
For ruby, there is gem2deb similar to npm2deb and dh-make-ruby similar to your idea as commands. I think we can create dh-make-nodejs command which can be run inside a directory. This way we can use the same command to update existing packages when npm2deb has new features.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/LeoIannacone/npm2deb/issues/150#issuecomment-621403749, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADHNTYIRBY3IT7KML44R5NLRPB24VANCNFSM4MT7A4XA .
I am currently looking at packaing
bitwarden
, a graphical, open-source password manager. The team at bitwarden packaged using Node.js packaging, but for some reason chose not to put their package in the node repositories. I am also filing a bug there, to ask them to move it online, but in the meantime I was wondering if support for local depositories could be added.I tried reading your manpages, which were very sparse (I am also interested in fixing those up: you don't have any documentation for your subcommands). In the end, I cracked open the source, and noticed that you support passing in a local
package.json file
, but when I tried it, it still attempted to download from the npm website: and it still failed.I took a peek inside
download()
, and although my python is not the best, I think it could reasonably be patched to use a local copy instead of trying to grab from the NPM site. I am definitely interested in doing this: I just figured I should inform you of my approach before trying it.My idea is to let
node-module
be a directory. That would mean adding a new case toread_package_info()
: with the conditional beingos.path.isdir()
, and then doing as theos.path.isfile()
case does. Further,download()
would need to be patched to not download. My thoughts on that were that it might be best if I preventeddownload()
from being called ifname_is == dir
, rather than editingdownload
to have a case in which a download is not done.Again, I am not the most familiar with python, so you'll want to review my eventual pull request pretty closely. I'll probably be doing the manpage work first, since (a) I need to understand the app before I can mess with it, and (b) I want to make sure other people know how to use the result