UNPKG

gypwatcher

Version:

Automatically run node-gyp when your module's C++ files change

40 lines (31 loc) 801 B
# gypwatcher Automatically run node-gyp when your module's C++ files change # Install `npm install -g gypwatcher` # Usage Run `gypwatcher` in your project directory to run `node-gyp` when your project's C++ files change. # API Gypwatcher will look for a config file `./gypwatcher` in your project to load following settings which may be customized. The example below is default. ```JavaScript { watchFiles: [ './**/*.cc', './**/*.h', './**/*.cpp', './**/*.cxx', './**/*.c' ], chokidarOptions: { ignoreInitial: false }, nodeGypScript: [ '/usr/local/bin/node-gyp', '/usr/local/lib/node_modules/node-gyp/bin/node-gyp.js' ], nodeGypOptions: [ 'rebuild' ], nodeGypPost: './postExec' }; ```