Skip to content

Commit ced9ac9

Browse files
committed
doc: add instructions to build with ninja
1 parent 23ce3b1 commit ced9ac9

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Build Test with Ninja
2+
3+
Ninja can be used to speed up building tests with optimized parallelism.
4+
5+
To build the tests with ninja and node-gyp, run the following commands:
6+
7+
```sh
8+
/node-addon-api $ node-gyp configure -C test -- -f ninja
9+
/node-addon-api $ ninja -C test/build/Release
10+
# Run tests
11+
/node-addon-api $ node ./test/index.js
12+
13+
# Run tests with debug addon
14+
/node-addon-api $ ninja -C test/build/Debug
15+
/node-addon-api $ NODE_API_BUILD_CONFIG=Debug node ./test/index.js
16+
```

0 commit comments

Comments
 (0)