Skip to content

Commit

Permalink
Use incremental builds rather than full builds
Browse files Browse the repository at this point in the history
In this project, we can use the following command to test examples.
  `$ npm test`

It might be very inefficient, especially, if the number of files
increases. So, it's better to use incremental builds rather than full
builds. We can accomplish this by combining `configure` and `build`
commands instead of `rebuild` command.
  • Loading branch information
romandev committed Nov 17, 2017
1 parent 82656bb commit 33a2327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"url": "git://github.com/nodejs/node-addon-api.git"
},
"scripts": {
"pretest": "node-gyp rebuild -C test",
"pretest": "node-gyp configure build -C test",
"test": "node test",
"doc": "doxygen doc/Doxyfile"
},
Expand Down

0 comments on commit 33a2327

Please sign in to comment.