A custom notifier for gulp-notify to send messages to Growl clients using GNTP.
$ npm install gulp-notify-growl --save-dev
In your gulpfile.js
:
var
gulp = require('gulp'),
notify = require('gulp-notify'),
growl = require('gulp-notify-growl')
;
// Initialize the notifier
var growlNotifier = notify.withReporter(growl({
hostname : '192.168.0.10' // IP or Hostname to notify, default to localhost
}));
gulp.task('default', function() {
gulp.src('./package.json')
.pipe(growlNotifier({
title: 'Done.',
message: 'Done something with the package.json'
}));
});
Type: String
IP or Hostname to notify, default to localhost
.
Type: Number
GNTP port, default to 23053
.
Type: Number
Socket inactivity timeout, default to 5000
.
Type: Buffer
Icon to display in the notification, default to the gulp icon.
var growlNotifier = growl({
hostname : '192.168.0.10',
icon : fs.readFileSync('doge.png')
});
Type: Object
Additional GNTP headers sent on all requests.
var growlNotifier = growl({
hostname : '192.168.0.10',
additionalHeaders: {
'X-Foo': 'bar'
}
});
Type: String
Password is set in the Growl client settings.
Type: String
Hash algorithm when sending the messages, possible values: MD5
, SHA1
, SHA256
and SHA512
. Default to SHA256
.
Type: String
Encryption used when sending the messages, possible values: AES
, DES
and 3DES
. Default to no encryption.
Type: String
Second argument for custom application name registered in growl. Allows for multiple growlNotifiers with different application names.
var growlPHPUnitNotifier = growl({
hostname : '192.168.0.10',
icon : fs.readFileSync('doge.png')
}, 'Very Unit!');
var growlSassNotifier = growl({
hostname : '192.168.0.10',
icon : fs.readFileSync('doge.png')
}, 'Many Sass!');
gulp-notify-growl is licensed under the MIT License.