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 Merge pull request #315700 from sysraccoon/android-doc-fix 2024-06-24 23:10:40 +03:00
beam.section.md
bower.section.md
chicken.section.md
coq.section.md doc: Remove indefinite article and ending period from example meta.description 2024-07-20 09:18:42 +02:00
crystal.section.md
cuda.section.md
cuelang.section.md
dart.section.md doc/dart: minor sha256 -> hash change 2024-07-04 18:40:06 +08:00
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 nautilus: Move from gnome scope to top-level 2024-07-01 08:26:44 +02:00
go.section.md doc: document deprecation of buildGoPackage 2024-07-21 13:03:27 +02:00
gradle.section.md gradle: add setup hook 2024-07-12 21:36:09 +07:00
hare.section.md doc/hare: init 2024-06-04 20:33:11 -03:00
haskell.section.md doc: add a generic section on exploring package sets (#317392) 2024-06-28 12:10:56 +02:00
hy.section.md
idris.section.md
idris2.section.md doc: adopt new buildIdris changes in docs 2024-06-23 12:07:13 -05:00
index.md Merge pull request #288691 from konst-aa/nixify-akku 2024-07-08 14:35:03 +02:00
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 doc: Remove indefinite article and ending period from example meta.description 2024-07-20 09:18:42 +02:00
octave.section.md
perl.section.md doc: Remove indefinite article and ending period from example meta.description 2024-07-20 09:18:42 +02:00
php.section.md doc/php: Fix mkComposerRepository example 2024-07-13 18:56:35 +02:00
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 akku: Add akkuPackages, introduce deps.toml 2024-07-07 18:45:48 -04:00
swift.section.md
texlive.section.md doc: Remove indefinite article and ending period from example meta.description 2024-07-20 09:18:42 +02:00
titanium.section.md
vim.section.md vimPlugins: introduce passthru.initLua for some plugins (#334913) 2024-08-19 12:16:42 +02:00