You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will also use a proper indentation as a couple of entries
had a extra indentation of two spaces.
PR-URL: #17722
Reviewed-By: Jon Moss <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
Copy file name to clipboardexpand all lines: doc/guides/building-node-with-ninja.md
+17-8
Original file line number
Diff line number
Diff line change
@@ -1,28 +1,36 @@
1
1
# Building Node with Ninja
2
2
3
-
The purpose of this guide is to show how to build Node.js using [Ninja][], as doing so can be significantly quicker than using `make`. Please see [Ninja's site][Ninja] for installation instructions (unix only).
3
+
The purpose of this guide is to show how to build Node.js using [Ninja][], as
4
+
doing so can be significantly quicker than using `make`. Please see
5
+
[Ninja's site][Ninja] for installation instructions (unix only).
4
6
5
7
To build Node with ninja, there are 3 steps that must be taken:
6
8
7
9
1. Configure the project's OS-based build rules via `./configure --ninja`.
8
10
2. Run `ninja -C out/Release` to produce a compiled release binary.
9
11
3. Lastly, make symlink to `./node` using `ln -fs out/Release/node node`.
10
12
11
-
When running `ninja -C out/Release` you will see output similar to the following if the build has succeeded:
13
+
When running `ninja -C out/Release` you will see output similar to the following
14
+
if the build has succeeded:
15
+
12
16
```txt
13
17
ninja: Entering directory `out/Release`
14
18
[4/4] LINK node, POSTBUILDS
15
19
```
16
20
17
-
The bottom line will change while building, showing the progress as `[finished/total]` build steps.
18
-
This is useful output that `make` does not produce and is one of the benefits of using Ninja.
19
-
Also, Ninja will likely compile much faster than even `make -j4` (or `-j<number of processor threads on your machine>`).
21
+
The bottom line will change while building, showing the progress as
22
+
`[finished/total]` build steps. This is useful output that `make` does not
23
+
produce and is one of the benefits of using Ninja. Also, Ninja will likely
24
+
compile much faster than even `make -j4` (or
25
+
`-j<number of processor threads on your machine>`).
20
26
21
27
## Considerations
22
28
23
-
Ninja builds vary slightly from `make` builds. If you wish to run `make test` after, `make` will likely still need to rebuild some amount of Node.
29
+
Ninja builds vary slightly from `make` builds. If you wish to run `make test`
30
+
after, `make` will likely still need to rebuild some amount of Node.
24
31
25
-
As such, if you wish to run the tests, it can be helpful to invoke the test runner directly, like so:
32
+
As such, if you wish to run the tests, it can be helpful to invoke the test
Copy file name to clipboardexpand all lines: doc/guides/maintaining-npm.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,9 @@ $ git checkout vX.Y.Z
21
21
$ make release
22
22
```
23
23
24
-
Note: please run `npm dist-tag ls npm` and make sure this is the `latest`**dist-tag**. `latest` on git is usually released as `next` when it's time to downstream
24
+
Note: please run `npm dist-tag ls npm` and make sure this is the `latest`
25
+
**dist-tag**. `latest` on git is usually released as `next` when it's time to
0 commit comments