Open ghost opened 9 years ago
Currently it only handles packages. Where would the binary be installed to?
What feels intuitive to me for this functionality would be for any URL that didn't resolve to an archive file, create a directory in node_modules with the name from package.json and put the file in there.
For example in my project I then copy that bin into a docker container in its /usr/bin. If I could depend on an arbitrary URL I can completely avoid installing curl, updating apt-get etc in the container.
I'm trying to include this file as part of my install, but napa is not retrieving it correctly,
https://github.com/away3d/away3d-core-fp11/releases/download/v4.1.6/away3d-core-fp11_4_1_6.swc
this would be quite straight forward to implement right? would a pr be accepted ?
edit: looks like #85 is already open. @shama can you take a look?
For example, I'd like to use napa to download a binary: https://github.com/kreuzwerker/envplate/releases/download/v0.0.8/ep-linux
Is it possible to do this? If not, I think it would be a nice feature to be able to download single files with napa.