[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Packaging Go with nodejs app



Hi,

I have a golang package that embeds a full reactjs/material app in the go executable that is built. When trying npm2js, pkgjs* and `dh --buildsystem=nodejs`, I noticed that none of them want to interact with a subdirectory.

I tried a few things, but seems dh nodejs buildsystem will only answer check_auto_buildable() only if package.json is at the root.

The basic structure of 'ntfy' [1] is:
- ntfy/
  - go.mod
  - ... golang stuff ...
  - web/
    - public/
    - src/
    - package.json
    - vite.config.js

Ignoring vitejs for a second.

My questions are:
a. Are there any examples of projects that do something similar that I can have a look at? To see how control/rules/etc.. look.

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?


1. https://salsa.debian.org/go-team/packages/ntfy

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.


--
Regards,
Ahmad


Reply to: