Nix NodeJS | 208 Members | |
| 58 Servers |
| Sender | Message | Time |
|---|---|---|
| 14 Nov 2023 | ||
| idk i need coffee anyway and brain is not working well yet | 13:57:45 | |
| (i'd definitely trust your judgement way more than my own on this anyway) | 13:58:46 | |
| I checked the code they really cross-referenced the project while not even declaring the module in package.json 🙄🤦♂️ | 13:59:51 | |
| perhaps there are circular plugin architecures, but usually it's more something like
and so both the "core" package and the plugin packages are loaded from the application code, the plugins don't load the core and the core doesn't load the plugins, the peer dependency constraint just serves to give people a warning if they have an incompatible core and plugins in the same project | 14:02:22 | |
| * perhaps there are circular plugin architecures, but usually it's more something like
and so both the "core" package and the plugin packages are loaded from the application code, the plugins don't load the core and the core doesn't load the plugins, the peer dependency constraint just serves to give people a warning if they have an incompatible core and plugins in the same project | 14:02:28 | |
| I wonder if it's possible to just install a list of dependencies https://github.com/svanderburg/node2nix#adding-unspecified-dependencies , like having a package.json
npm update doesn't work so I think not. My original issue is that right now I need to use | 14:09:55 | |
| 15 Nov 2023 | ||
| 12:41:52 | ||
| 16:10:49 | ||
| 16:10:49 | ||
| 17:38:27 | ||
| It's funny how no one seems to be using typescript https://www.reddit.com/r/Nix/comments/x7tdxd/building_typescript_node_apps_with_nix/ https://www.reddit.com/r/NixOS/comments/16xlbk2/looking_for_help_to_use_nixos_in_a_typescript/ | 17:41:43 | |
| 17:48:57 | ||
| 18:12:40 | ||
| 18:12:40 | ||
In reply to @keiichi:matrix.orgWe do use typescript, it's just compiled to JS in the build step. Otherwise, ts-node from nuxpkgs works too | 19:11:41 | |
| 16 Nov 2023 | ||
| 05:13:13 | ||
| think I kinda managed to package my typescript program with buildNpmPackage but on run I get
usually I can manage this kind of issues with a bit of NODE_PATH shenaningan but the files dont seem to even exist in | 09:51:55 | |
| 17 Nov 2023 | ||
| I had this idea today for a radically simple ingestion method for
I have a PoC here: https://github.com/adisbladis/fetch-package-lock/blob/master/flake.nix#L78-L82 I'm wondering if there is anything obvious I've missed? It seems to easy/simple. | 08:45:12 | |
| It certainly seems to be working alright, even for some larger stuff | 09:14:37 | |
| Hmm, you'd need to alter the source, right? Or do you plan to replace the package lock with a linked version? | 09:53:57 | |
In reply to @c0ba1t:matrix.orgI replace it with one where all the URLs are substituted with Nix store paths | 09:55:03 | |
| Okay, that sounds nice. That might also be a neat way to work around the occasional npm cache re-download issues. | 09:58:34 | |
| adisbladis: we have a weird cursed JS codebase at work I could try this on | 10:27:22 | |
| it has several package.json files in the repo but is not a workspace | 10:27:35 | |
In reply to @whentze:matrix.orgCool :) | 11:31:16 | |
| 14:43:37 | ||
| 18:22:25 | ||
| Hello Nix Community! | 18:22:56 | |
| Is there a way to have a development environment created from a single file?, for example, entering an angular project and running a nix related command would give me a specific docker postgresql database and specific nodejs and npm versions that would go with the Angular project | 18:23:42 | |
| You might want to look at arion | 18:32:26 | |