Nix NodeJS | 208 Members | |
| 59 Servers |
| Sender | Message | Time |
|---|---|---|
| 23 Nov 2023 | ||
Scwooly! So I want to get the astrojs language-server running through Kate LSP, but it isn't available in nixpkgs. What would be the easiest way to get a nodejs package in path? Is there a way to make global installs (i.e npm i -g) to install into a user path? Would it be better to just copy-paste another language-server nix definition? | 17:22:34 | |
| the astro language server is in nixpkgs: nodePackages."@astrojs/language-server" | 17:28:52 | |
| 17:30:24 | ||
| 18:25:13 | ||
In reply to @marie:marie.cologneThanks :D didn't know that. Also, had to remove with pkgs.nodePackages; to get it to work :/ so every line has pkgs.nodePackages now ^^; Dangit! And I got my nix files all nice and clean. But it's installed, now I just need to get it working. Again: Thanks! ^^ | 19:46:55 | |
| 24 Nov 2023 | ||
| Hey 👋
| 18:35:55 | |
| (In #267320 for reference) | 18:36:06 | |
It does appear in the yarn.lock, but does seem to be absent from /<<NIX>>/woodpecker-ci-modules-2.0.0/node_modules/ | 18:42:54 | |
| 26 Nov 2023 | ||
| Try the new node builder that uses npm directly if that isn't already being used | 14:44:23 | |
| 27 Nov 2023 | ||
| 14:31:34 | ||
| 29 Nov 2023 | ||
I have pkg = pkgs.buildNpmPackage and I would like to create a nix-shell with everything necessary to develop on pkg. I've tried a mkShell { buildInputs= [ pkg.inputDerivation ]; } but then I dont get npm or typescript. Is there a better way ? | 11:15:43 | |
| 1 Dec 2023 | ||
| 14:38:39 | ||
| Can someone help with this
the problem I'm trying to solve is pruning devDependencies | 14:41:29 | |
| Why are you modifying the buildPhase | 14:42:38 | |
if I remove that
mkYarnPackage doesn't have a default build phase | 14:47:51 | |
In reply to @tensor5:matrix.orgjust use yarn install --offline --frozen-lockfile --ignore-engines rather than trying to yarn build and then using npm | 16:06:03 | |
In reply to @tensor5:matrix.org* just use yarn install --offline --frozen-lockfile --ignore-engines rather than trying to yarn build + npm prune | 16:06:12 | |
In reply to @lily:lily.flowers no luck
| 18:31:58 | |
In reply to @tensor5:matrix.orgugh yarn2nix makes me sad. i'll look at the yarn2nix code in a bit and get back to you | 18:44:33 | |
| 3 Dec 2023 | ||
| 14:08:31 | ||
| 5 Dec 2023 | ||
| 00:38:02 | ||
| 8 Dec 2023 | ||
| 06:53:36 | ||
| 10 Dec 2023 | ||
| i wonder if theres a better way to do package nodejs apps... | 19:59:02 | |
| https://github.com/spacebarchat/server/blob/dev/nix/flake.nix#L24-L57 | 19:59:31 | |
In reply to @emma:conduit.rory.gaythey could have specified a good chunk of that in the package.json and let the default install behavior still run for buildNpmPackage. Then a postInstall hook would have been much shorter | 20:01:27 | |
| i wrote that | 20:01:42 | |
| hence why im asking for what i could improve | 20:01:53 | |
| https://github.com/spacebarchat/server/blob/dev/nix/package.json#L113 | 20:02:18 | |
| ah! i'll give specifics then, apologies. one moment, i only just got my laptop out | 20:05:17 | |
| yeah, i'd love to ditch all of that mess and go back to normal nodejs behavior | 20:05:38 | |