Run tasks whenever watched sockets change.
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-swatch --save-dev
The "swatch" task
Run this task with the
grunt swatch command.
In your project's Gruntfile, add a section named
swatch to the data object passed into
The ports key is used to tell Grunt which application port to probe.
The actions key is an array of action objects which are action configuration objects. The current availble action is the
nim action which starts the Node.js debugger via the inspector protocol and signal handlers.
'SIGUSR1'is reserved by Node.js to start the debugger. It's possible to install a listener but doing so might interfere with the debugger. Note that currently the only port that can be used is the default 9229 due to a limitation of Node.js.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.