node-notifierを使用できることはわかっていますが、完了したタスクに依存する (.pipe を使用しない) 通知を設定するより良い方法はありますか?
以下は機能しますが、単一のタスク内でこれを達成する方法はありますか?
// 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']);