On 03/09/2025 23:35, Jérémy Lal wrote:
> Not that I know of with nodejs, but you can try "receptor" where I do:
> dh_auto_configure --buildsystem=pybuild --sourcedirectory=receptorctl --
> --name=receptorctl
Problem is that nodejs buildsystem doesn't check --sourcedirectory. It
only checks the root for project.{json,yaml} [1].
Right, my mistake.
Have a look at pkg-js-tools(7), especially the part about
debian/nodejs/additional_components
Example:
I've seen examples of using uglify to minify a single file here and
there, but nothing that can use the full build system to process a
package.json outside the root dir.
> b. The dependencies of this app include "react-remark", which is pretty
> deep (pkgjs-depends shows ~50 lines) - are there any plans to package
> that or suggestions on whether it's doable?
>
>
> To check if someone's on it:
> https://wnpp.debian.net/?
> type%5B%5D=ITA&type%5B%5D=ITP&type%5B%5D=O&type%5B%5D=RFA&type%5B%5D=RFH&type%5B%5D=RFP&project=react&description=&owner%5B%5D=yes&owner%5B%5D=no&col%5B%5D=dust&col%5B%5D=type&col%5B%5D=description&col%5B%5D=installs&col%5B%5D=owner&sort=installs%2Fdesc <https://wnpp.debian.net/?type%5B%5D=ITA&type%5B%5D=ITP&type%5B%5D=O&type%5B%5D=RFA&type%5B%5D=RFH&type%5B%5D=RFP&project=react&description=&owner%5B%5D=yes&owner%5B%5D=no&col%5B%5D=dust&col%5B%5D=type&col%5B%5D=description&col%5B%5D=installs&col%5B%5D=owner&sort=installs%2Fdesc>
>
> This isn't going to be easy, though some parts might be packageable in a
> M.U.T. bundle.
> remark-parse, remark-rehype, unified maybe.
Yeah, it didn't look easy at all.
The remark/rehype/unified ecosystem would be good to have in debian, though.
> PS, I'm ignoring vitejs for now as I saw some emails about it on the
> list, so I'll wait a little to see what happens. Also, planning on
> trying webpack, if it can do the job.
>
>
> Try esbuild, it's a very friendly bundler.
Never tried it before, but will give it a go. Thanks.
1.
https://salsa.debian.org/js-team/pkg-js-tools/-/blob/master/lib/Debian/Debhelper/Buildsystem/nodejs.pm?ref_type=heads#L560
--
Regards,
Ahmad