Replies: 4 comments 4 replies
-
Didn't see the discussions sections, sorry for making an issue. |
Beta Was this translation helpful? Give feedback.
-
This would be very helpful! In this same project I found myself using external I think the hard part is finding a reliable way to store dependency data from which to reconstruct installation commands: some CLIs don't even use scripts:
setup:
- deno install ...
- deno install ...
- deno run ...
myscript: # use the installed deps here Also, storing deps launchers in a local folder is a very cool idea! Should be pretty easy to implement using |
Beta Was this translation helpful? Give feedback.
-
I guess a rough sketch of the idea from my end would be like this: # scripts.yaml
scripts:
start: file-server .
post-gist: gist ./foo.bar
tools: # these are for supplementing scripts with localized tools, not project code dependencies. Possibly a clearer name.
file-server: # you can rename the bin here
url: https://deno.land/std@0.97.0/http/file_server.ts
allow: [net, read]
https://deno.land/std@0.97.0/examples/gist.ts: [net, read] # alternative syntax idea
Yeah, that would be the initial limitation, supplemental project local clis and tools would have to be installable via deno install (at least as a starting point with this idea). It does look like loom offers a
The ideal sketched above would put no dependency on
I'm not even sure thats the 'best' way to do it. Maybe a more deno-y way would be to cache CLIs by the URL they are installed by (or whatever they resolve to the case of semver supportive CDNs) into a global cache (does deno do this already with |
Beta Was this translation helpful? Give feedback.
-
@bcomnes I created a feature issue to summarize all this, see #63 |
Beta Was this translation helpful? Give feedback.
-
Have you given any thought or considered adding support for versioned tools similar to how npm supplements its script environment PATH with node_modules/.bin?
Not exactly sure what that would look like in a deno project, but roughly you would would list
deno install
able cli urls (and maybe permission flags) in a project file, have them installed into a local project folder, and then supplement the script shell's path to include these.Thoughts? Maybe there are other tools out there providing this?
Beta Was this translation helpful? Give feedback.
All reactions