From: t@fullmeta.me
To: help-guix@gnu.org
Subject: Web development on Guix: nodejs, npm and all that
Date: Mon, 10 Jan 2022 13:17:56 +0000 [thread overview]
Message-ID: <87y23niukg.fsf@fastmail.com> (raw)
Hi Guix.
Do people do web-dev on Guix System? I need to dive back into the
whole Node.js NPM ecosystem - something I've not touched for some
years and I'm wondering how people go about e.g. installing NPM
packages on Guix.
I started by reading (guix build node-build-system) as one does. I
think I have a decent grasp on exactly how it goes about
installing those NPM dependencies. Unsurprisingly you need to
package all those dependencies as Guix packages, then supply them
as inputs, whereupon the extra 'patch-dependencies phase will
actually lookup those packages in your inputs and replace deps
paths under "dependencies", "devDependencies", "peerDependencies"
with store items as needed. Configure phase actually runs local
install with --offline and --ignore-scripts which is
understandable followed by build phase which does npm run build
where the script is available. Followed by some tar and npm
install from local package dance, which I don't fully understand,
but I get the general idea and where we end up (I still haven't a
clue what 'set-home phase does and why).
This is all very cute and reproducible, but ... JS web developers
aren't exactly known for avoiding dependencies. Even just getting
express-js to run would require me to package ungodly number of
those dependencies.
If guix repo is indicative, looks like I'm not the only one to
realise packaging those would be too much work unless the entire
community somehow decides to come together and do an "NPM Summer
of Hard Unpaid Labour".
So, how do people program for the Web, Node on Guix. Does =npm
install= which defaults to local installation work well enough for
most packages? An outline of what to expect and known problems and
workarounds would be very useful.
Thank you
next reply other threads:[~2022-01-10 13:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-10 13:17 t [this message]
2022-01-10 14:02 ` Web development on Guix: nodejs, npm and all that Remco
2022-01-10 15:16 ` t
2022-01-10 23:08 ` Jelle Licht
2022-01-10 14:54 ` Dr. Arne Babenhauserheide
2022-01-10 18:15 ` Chris Marusich
2022-01-10 22:24 ` Dr. Arne Babenhauserheide
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y23niukg.fsf@fastmail.com \
--to=t@fullmeta.me \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).