| Commit message (Expand) | Author | Age | Files | Lines |
| * | doc/javascript: document yarn{Config,Build}Hook | Doron Behar | 2024-07-10 | 1 | -0/+66 |
| * | doc/javascript: pnpm: mention lack of monorepos/workspaces support | Doron Behar | 2024-06-03 | 1 | -0/+2 |
| * | pnpm.fetchDeps: init•••Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
| Sefa Eyeoglu | 2024-06-02 | 1 | -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 Flanagan | 2024-03-29 | 1 | -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-28 | 1 | -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 Flanagan | 2024-03-22 | 1 | -13/+32 |
| * | doc/mkYarnPackage: document better distPhase and doDist | Doron Behar | 2024-03-18 | 1 | -2/+2 |
| * | Merge pull request #289231 from adisbladis/fetchnpmlock•••importNpmLock: init | adisbladis | 2024-03-08 | 1 | -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 = ./.;
};
}
```
| adisbladis | 2024-03-05 | 1 | -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 Torres | 2024-03-06 | 1 | -3/+3 |
| |/ |
|
| * | doc: mkYarnPackage/mkYarnModules should use offlineCache to prevent IFD•••This is not mentioned elsewhere, and can be confusing. | Midnight Veil | 2023-12-09 | 1 | -0/+1 |
| * | buildNpmPackage: allow passing npmDeps | happysalada | 2023-11-16 | 1 | -0/+1 |
| * | docs/javascript/introduction: fix GitHub search link | Fabian | 2023-11-12 | 1 | -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> | Yt | 2023-11-09 | 1 | -0/+1 |
| * | buildNpmPackage: support makeWrapperArgs | Doron Behar | 2023-10-07 | 1 | -0/+1 |
| * | docs/javascript/buildNpmPackage: Document fetchNpmDeps•••Co-authored-by: Lily Foster <lily@lily.flowers>
| Doron Behar | 2023-10-07 | 1 | -1/+10 |
| * | docs/javascript/buildNpmPackage: Document bin, man and npm pack behavior | Doron Behar | 2023-10-07 | 1 | -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 Mertens | 2023-09-20 | 1 | -1/+1 |
| * | nodejs: corepack wrappers package | Wout Mertens | 2023-09-20 | 1 | -0/+4 |
| * | doc/languages-frameworks/javascript: add npmWorkspace and npmPruneFlags args | Lily Foster | 2023-06-29 | 1 | -1/+3 |
| * | Merge pull request #230157 from teutat3s/buildnpmpackage-docs•••buildNpmPackage: document dontNpmBuild option | Lily Foster | 2023-06-28 | 1 | -0/+2 |
| |\ |
|
| | * | buildNpmPackage: document dontNpmBuild option•••document dontNpmInstall option
| teutat3s | 2023-06-28 | 1 | -0/+2 |
| * | | doc: correct typos and spelling (#237098) | Andrew | 2023-06-11 | 1 | -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äckel | 2023-04-25 | 1 | -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).
| pennae | 2023-03-27 | 1 | -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.
| Winter | 2022-12-13 | 1 | -2/+3 |
| * | docs: fixup wording and formatting on JavaScript | Valentin Gagarin | 2022-12-07 | 1 | -4/+7 |
| * | document Import From Derivation (IFD) policy | Valentin Gagarin | 2022-12-07 | 1 | -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 Arnott | 2022-12-04 | 1 | -1/+1 |
| * | doc/languages-frameworks/javascript: update deps hash in example | Winter | 2022-11-23 | 1 | -1/+1 |
| * | npmHooks.npmInstallHook: pass install flags to prune | Winter | 2022-11-21 | 1 | -1/+1 |
| * | buildNpmPackage: init | Winter | 2022-11-09 | 1 | -0/+55 |
| * | docs/javascript: advise to create less yarn.nix files | Sandro Jäckel | 2022-07-30 | 1 | -8/+29 |
| * | nodePackages: update/cleanup documentation | Malo Bourgon | 2022-05-14 | 1 | -94/+91 |
| * | docs: document Javascript package updates in nixpkgs | Austin Butler | 2022-03-21 | 1 | -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.md | Akshat | 2021-09-03 | 1 | -1/+1 |
| * | Update doc/languages-frameworks/javascript.section.md•••Co-authored-by: Jonathan Ringer <jonringer@users.noreply.github.com> | Bill Ewanick | 2021-08-25 | 1 | -1/+1 |
| * | Adding dependency override example | Bill Ewanick | 2021-08-25 | 1 | -0/+36 |
| * | Adding tips/searching section | Bill Ewanick | 2021-08-25 | 1 | -0/+17 |
| * | Minor corrections | Bill Ewanick | 2021-08-25 | 1 | -8/+8 |
| * | docs: move node section to javascript section | happysalada | 2021-08-21 | 1 | -0/+52 |
| * | docs: add javascript section | happysalada | 2021-08-21 | 1 | -0/+151 |