You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 to read_package_info(): with the conditional being os.path.isdir(), and then doing as the os.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 prevented download() from being called if name_is == dir, rather than editing download 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
The text was updated successfully, but these errors were encountered:
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.
On Wed, Apr 29, 2020 at 3:04 PM Pirate Praveen Arimbrathodiyil < ***@***.***> 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
<#150 (comment)>,
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
The text was updated successfully, but these errors were encountered: