summaryrefslogtreecommitdiff
path: root/doc/languages-frameworks/javascript.section.md (follow)
Commit message (Expand)AuthorAgeFilesLines
* doc/javascript: document yarn{Config,Build}HookDoron Behar2024-07-101-0/+66
* doc/javascript: pnpm: mention lack of monorepos/workspaces supportDoron Behar2024-06-031-0/+2
* pnpm.fetchDeps: init•••Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net> Sefa Eyeoglu2024-06-021-0/+63
* doc: lowercase npm name•••npm, Inc documentation asks to use lowercase. Their documentation also has consistent lowercase usage. e.g. <https://docs.npmjs.com/about-npm> Eli Flanagan2024-03-291-10/+10
* treewide: Fix all Nix ASTs in all markdown files•••This allows for correct highlighting and maybe future automatic formatting. The AST was verified to work with nixfmt only. Janne Heß2024-03-281-27/+43
* doc: improve javascript conventions (#298127)•••I created newlines per the <https://github.com/NixOS/nixpkgs/blob/master/doc/README.md#documentation-conventions> guide. This paves the way for future contributions to not be distracted by expected conventions.Eli Flanagan2024-03-221-13/+32
* doc/mkYarnPackage: document better distPhase and doDistDoron Behar2024-03-181-2/+2
* Merge pull request #289231 from adisbladis/fetchnpmlock•••importNpmLock: initadisbladis2024-03-081-0/+31
|\
| * importNpmLock: init•••This is an alternative to `fetchNpmDeps` that is notably different in that it uses metadata from `package.json` & `package-lock.json` instead of specifying a fixed-output hash. Notable features: - IFD free. - Only fetches a node dependency once. No massive FODs. - Support for URL, Git and path dependencies. - Uses most of the existing `npmHooks` `importNpmLock` can be used _only_ in the cases where we need to check in a `package-lock.json` in the tree. Currently this means that we have 13 packages that would be candidates to use this function, though I expect most usage to be in private repositories. This is upstreaming the builder portion of https://github.com/adisbladis/buildNodeModules into nixpkgs (different naming but the code is the same). I will archive this repository and consider nixpkgs the new upstream once it's been merged. For more explanations and rationale see https://discourse.nixos.org/t/buildnodemodules-the-dumbest-node-to-nix-packaging-tool-yet/35733 Example usage: ``` nix stdenv.mkDerivation { pname = "my-nodejs-app"; version = "0.1.0"; src = ./.; nativeBuildInputs = [ importNpmLock.hooks.npmConfigHook nodejs nodejs.passthru.python # for node-gyp npmHooks.npmBuildHook npmHooks.npmInstallHook ]; npmDeps = buildNodeModules.fetchNodeModules { npmRoot = ./.; }; } ``` adisbladis2024-03-051-0/+31
* | Nix docs: remove `with lib;` from example code•••Following [Best Practices](https://nix.dev/guides/best-practices#with-scopes), `with` is a problematic language construction and should be avoided. Usually it is employed like a "factorization": `[ X.A X.B X.C X.D ]` is written `with X; [ A B C D ]`. However, as shown in the link above, the syntatical rules of `with` are not so intuitive, and this "distributive rule" is very selective, in the sense that `with X; [ A B C D ]` is not equivalent to `[ X.A X.B X.C X.D ]`. However, this factorization is still useful to "squeeze" some code, especially in lists like `meta.maintainers`. On the other hand, it becomes less justifiable in bigger scopes. This is especially true in cases like `with lib;` in the top of expression and in sets like `meta = with lib; { . . . }`. That being said, this patch removes most of example code in the current documentation. The exceptions are, for now - doc/functions/generators.section.md - doc/languages-frameworks/coq.section.md because, well, they are way more complicated, and I couldn't parse them mentally - yet another reason why `with` should be avoided! Anderson Torres2024-03-061-3/+3
|/
* doc: mkYarnPackage/mkYarnModules should use offlineCache to prevent IFD•••This is not mentioned elsewhere, and can be confusing.Midnight Veil2023-12-091-0/+1
* buildNpmPackage: allow passing npmDepshappysalada2023-11-161-0/+1
* docs/javascript/introduction: fix GitHub search linkFabian2023-11-121-1/+1
* buildNpmPackage: make nodejs overridable (#265171)•••* buildNpmPackage: allow nodejs to be passed as argument * Update doc/languages-frameworks/javascript.section.md Co-authored-by: Lily Foster <lily@lily.flowers> --------- Co-authored-by: Lily Foster <lily@lily.flowers>Yt2023-11-091-0/+1
* buildNpmPackage: support makeWrapperArgsDoron Behar2023-10-071-0/+1
* docs/javascript/buildNpmPackage: Document fetchNpmDeps•••Co-authored-by: Lily Foster <lily@lily.flowers> Doron Behar2023-10-071-1/+10
* docs/javascript/buildNpmPackage: Document bin, man and npm pack behaviorDoron Behar2023-10-071-0/+4
* corepack: PR review updates•••Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com> Co-authored-by: Sandro Jaeckel <sandro.jaeckel@gmail.com> Wout Mertens2023-09-201-1/+1
* nodejs: corepack wrappers packageWout Mertens2023-09-201-0/+4
* doc/languages-frameworks/javascript: add npmWorkspace and npmPruneFlags argsLily Foster2023-06-291-1/+3
* Merge pull request #230157 from teutat3s/buildnpmpackage-docs•••buildNpmPackage: document dontNpmBuild optionLily Foster2023-06-281-0/+2
|\
| * buildNpmPackage: document dontNpmBuild option•••document dontNpmInstall option teutat3s2023-06-281-0/+2
* | doc: correct typos and spelling (#237098)Andrew2023-06-111-1/+1
|/
* nodejs*: normalise names to better fit other packages•••Versioned package attributes are usually named like $pname_$version eg: nodejs-14_x -> nodejs_14 Sandro Jäckel2023-04-251-1/+1
* doc: assign ids to many headings•••without stable ids on headings we cannot generate stable links to these headings. nrd complains about this, but the current docbook workflow does not. a few generated ids remain, mostly in examples and footnotes. most of the examples are generated by nixdoc (which has since gained MD export functions, and the MD export does generate IDs). pennae2023-03-271-6/+6
* doc/languages-frameworks/javascript: use --ignore-scripts flag in example•••Presenting an example with a patch (without even providing that patch!) is not ideal. Since `npm pack` now obeys `--ignore-scripts`, we can use that instead. Winter2022-12-131-2/+3
* docs: fixup wording and formatting on JavaScriptValentin Gagarin2022-12-071-4/+7
* document Import From Derivation (IFD) policyValentin Gagarin2022-12-071-1/+1
* doc: use sri hash syntax•••The nixpkgs manual contains references to both sri hash and explicit sha256 attributes. This is at best confusing to new users. Since the final destination is exclusive use of sri hashes, see nixos/rfcs#131, might as well push new users in that direction gently. Notable exceptions to sri hash support are builtins.fetchTarball, cataclysm-dda, coq, dockerTools.pullimage, elixir.override, and fetchCrate. None, other than builtins.fetchTarball, are fundamentally incompatible, but all currently accept explicit sha256 attributes as input. Because adding backwards compatibility is out of scope for this change, they have been left intact, but migration to sri format has been made for any using old hash formats. All hashes have been manually tested to be accurate, and updates were only made for missing upstream artefacts or bugs. Colin Arnott2022-12-041-1/+1
* doc/languages-frameworks/javascript: update deps hash in exampleWinter2022-11-231-1/+1
* npmHooks.npmInstallHook: pass install flags to pruneWinter2022-11-211-1/+1
* buildNpmPackage: initWinter2022-11-091-0/+55
* docs/javascript: advise to create less yarn.nix filesSandro Jäckel2022-07-301-8/+29
* nodePackages: update/cleanup documentationMalo Bourgon2022-05-141-94/+91
* docs: document Javascript package updates in nixpkgsAustin Butler2022-03-211-2/+24
* remove a mention of #node.section.md•••node.section.md has been removed so this commit removes the reference of it inside javascript.section.mdAkshat2021-09-031-1/+1
* Update doc/languages-frameworks/javascript.section.md•••Co-authored-by: Jonathan Ringer <jonringer@users.noreply.github.com>Bill Ewanick2021-08-251-1/+1
* Adding dependency override exampleBill Ewanick2021-08-251-0/+36
* Adding tips/searching sectionBill Ewanick2021-08-251-0/+17
* Minor correctionsBill Ewanick2021-08-251-8/+8
* docs: move node section to javascript sectionhappysalada2021-08-211-0/+52
* docs: add javascript sectionhappysalada2021-08-211-0/+151