nixpkgs/doc/languages-frameworks
adisbladis 9c7ff7277c
importNpmLock.buildNodeModules: init
`importNpmLock.buildNodeModules` returns a derivation with a pre-built `node_modules` directory, as imported by `importNpmLock`.
This is to be used together with `importNpmLock.hooks.linkNodeModulesHook` to facilitate `nix-shell`/`nix develop` based development workflows:

```nix
pkgs.mkShell {
  packages = [
    importNpmLock.hooks.linkNodeModulesHook
    nodejs
  ];

  npmDeps = importNpmLock.buildNodeModules {
    npmRoot = ./.;
    inherit nodejs;
  };
}
```
will create a development shell where a `node_modules` directory is created & packages symlinked to the Nix store when activated.

This code is adapted from https://github.com/adisbladis/buildNodeModules
2024-08-29 06:12:07 -07:00
..
agda.section.md
android.section.md
beam.section.md
bower.section.md
chicken.section.md
coq.section.md
crystal.section.md
cuda.section.md
cuelang.section.md
dart.section.md
dhall.section.md
dlang.section.md
dotnet.section.md dotnet: use unpacked nuget packages 2024-07-31 00:47:14 -03:00
emscripten.section.md
gnome.section.md
go.section.md doc: document deprecation of buildGoPackage 2024-07-21 13:03:27 +02:00
gradle.section.md
hare.section.md
haskell.section.md
hy.section.md
idris.section.md
idris2.section.md
index.md
ios.section.md
java.section.md
javascript.section.md importNpmLock.buildNodeModules: init 2024-08-29 06:12:07 -07:00
julia.section.md
lisp.section.md
lua.section.md
maven.section.md
nim.section.md treewide: fix doc typos 2024-07-26 00:55:13 +02:00
ocaml.section.md
octave.section.md
perl.section.md
php.section.md
pkg-config.section.md
python.section.md Merge remote-tracking branch 'origin/master' into staging-next 2024-08-11 03:10:34 +02:00
qt.section.md
r.section.md doc: update R section to mention .json files 2024-07-31 18:28:38 +02:00
ruby.section.md
rust.section.md Merge pull request #330176 from raboof/docs-show-pyproject-instead-of-format 2024-07-31 10:09:20 +08:00
scheme.section.md
swift.section.md
texlive.section.md
titanium.section.md
vim.section.md vimPlugins: introduce passthru.initLua for some plugins (#334913) 2024-08-19 12:16:42 +02:00