luvit icon indicating copy to clipboard operation
luvit copied to clipboard

Automatic discovery of dependencies

Open ghost opened this issue 10 years ago • 3 comments

As Luvit hooks into the require() system, it should be possible to give an automated hint to the dependencies of a package by running the testsuite and recording the arguments to all calls to require(). This could then be used to give a suggestion for the dependencies meta field and potentially warn the user if that list differs wildly from the recorded list.

ghost avatar Nov 30 '15 10:11 ghost

Neat idea. Do you have time to prototype this?

creationix avatar Nov 30 '15 18:11 creationix

I'll try to fit it into my work schedule. No guarantees about the timeframe, though.

ghost avatar Dec 01 '15 10:12 ghost

I could see this being done in two places. One would be in the tap module with hooks in luvit's require system. Another would be a new lit command. We already have lit ls that shows current versions, but something that compares this with what's in the declared dependencies and shows mismatches or potential updates would be great. (this is something npm does by default in npm ls btw)

creationix avatar Dec 02 '15 03:12 creationix