[Pkg-javascript-devel] pkg-js-tools news

Jonas Smedegaard jonas at jones.dk
Mon Mar 14 14:07:53 GMT 2022


Quoting Yadd (2022-03-14 08:41:44)
> Hi all,
> 
> pkg-js-tools 0.13.0 improve pkgjs-depends and add a new 
> dh_nodejs_autodocs tool (to automatically install components 
> documentation: @rouca, this is for you ;-))
> 
> Here is the result of new "-c" option (display mismatch versions)
> 
> $ pkgjs-depends -c ava

Using option -c requires apt-file.  This should probably grow a 
Recommends: for the package, or at least a Suggests: and a notice in 
long description.

That option -c fails unless mismatching packages are installed.

I suggest to at least mention that constraint in man page, or 
(obviously) avoid that constraint if possible.


Even without the option -c it takes extremely long time for big projects 
- I gave up after a few hours trying this command:

  pkgjs-depends @solid/community-server

Maybe use Progress::Any::Output::TermProgressBarColor to enhance user 
experience?


Maybe processing time could be drastically faster by bypassing apt-file: 
Essentially it does a grep on packaging files, so replacing 1000 calls 
to apt-file which does 1000 calls to grep is likely far more efficiently 
done by loading packaging files once and grepping internally in perl.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20220314/0e94bd8e/attachment.sig>


More information about the Pkg-javascript-devel mailing list