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 treewide: Switch markdown placeholder from "..." to <...> 2024-03-28 09:28:12 +01:00
android.section.md Merge pull request #315700 from sysraccoon/android-doc-fix 2024-06-24 23:10:40 +03:00
beam.section.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
bower.section.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
chicken.section.md treewide: Switch markdown placeholder from "..." to <...> 2024-03-28 09:28:12 +01:00
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 treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
cuda.section.md docs/cuda: remove last references to cudaPackages.autoAddDriverRunpath 2024-04-23 08:12:34 -07:00
cuelang.section.md treewide: Mark Nix blocks in markdown as Nix 2024-03-28 09:28:12 +01:00
dart.section.md doc/dart: minor sha256 -> hash change 2024-07-04 18:40:06 +08:00
dhall.section.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
dlang.section.md doc: add dlang language section 2024-04-03 12:32:09 +02:00
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
idris2.section.md doc: adopt new buildIdris changes in docs 2024-06-23 12:07:13 -05:00
idris.section.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01: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 treewide: Switch markdown placeholder from "..." to <...> 2024-03-28 09:28:12 +01:00
javascript.section.md importNpmLock.buildNodeModules: init 2024-08-29 06:12:07 -07:00
julia.section.md
lisp.section.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
lua.section.md Merge master into staging-next 2024-03-28 12:01:21 +00:00
maven.section.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
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 doc: Mention testers.hasPkgConfigModules and its versionCheck parameter in the appropriate section 2024-04-30 20:34:08 +00:00
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 treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
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 treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
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