gulp-notifiable-task
v1.1.1
Published
A wrapper to create gulp task with node-notify.
Downloads
12
Maintainers
Readme
gulp-notifiable-task
Information
This plugin adds a .notifiableTask
wrapper method that create Gulp task and mimics .task
parameters.
You may pass in --staging
, --production
or --disableNotification
to surpress notification.
Underlyingly, the plugin is using:
node-notifier
to trigger notificationgulp-plumber
to patch error handlergulp-util
to check for environment and arguments
Usage
let gulp = require('gulp');
let sass = require('gulp-sass');
require('gulp-notifiable-task');
gulp.notifiableTask('build', ['build:sass']);
gulp.notifiableTask('build:sass', function() {
gulp.src('**/*.sass')
.pipe(sass())
.pipe(gulp.dest('css'));
});
Todos
- Customizable notification templates
- Custom callback before notification
Credits
- calvin @ weixhen.co
node-notifier
gulp
gulp-plumber
gulp-util