We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23ce3b1 commit ced9ac9Copy full SHA for ced9ac9
doc/contributing/build_with_ninja.md
@@ -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