I know I can use node-notifier but is there a better way to set up a notification which is dependent on a task being complete (and which does not use .pipe)
The below works but is there a way to achieve this within a single task?
// Perform data task
gulp.task('imgData1', function() {
imageExport.record({
path: path.images_src,
output: path.images_data,
template: 'custom.hbs',
breakpointDelimiter: '--'
})
});
// Perform notification task
gulp.task('imgData2', ['imgData1'], function() {
notifier.notify({
'title': 'My notification',
'message': 'Data task complete!'
});
});
// Perform data task then the notification task
gulp.task('imgData', ['imgData2']);