gypwatcher

0.0.2 • Public • Published

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.

{
    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'
};

Package Sidebar

Install

npm i gypwatcher

Weekly Downloads

11

Version

0.0.2

License

MIT

Last publish

Collaborators

  • jacinto