mikaelbr / gulp-notify

gulp plugin to send messages based on Vinyl Files or Errors to Mac OS X, Linux or Windows using the node-notifier module. Fallbacks to Growl or simply logging
MIT License
592 stars 40 forks source link

Add a way to set global config #130

Open muuvmuuv opened 5 years ago

muuvmuuv commented 5 years ago

It would be great if I could set some global options by default like appName on the start of my task notifier. This would prevent me to merge objects every time or assign the values new.

Maybe I miss something out but my way ATM is:

const notifierOptions = {
  appName: APP_NAME,
  title: APP_NAME,
  message: 'Starting gulp...',
  sound: true,
}

notifierOptions.message = `Starting compressing files for ${name}`
src(file).pipe(notify(notifierOptions))

would be great if I could just

notify.appName = APP_NAME