How to use the gulp-notify/node_modules/node-notifier.notify function in gulp-notify

To help you get started, we’ve selected a few gulp-notify examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kitze / gtb / tasks / compile / compile-sass.js View on Github external
var showError = function (err) {
      var file = err.file.replace(dir(config.dirs.css), '');
      notifier.notify({
        'title': 'SASS error',
        'message': err.message + " at " + file
      });
      con.custom(chalk.red.bold('SASS error: ') + err.message);
      /* Don't show the full size of the path in the error */
      con.custom(chalk.red.bold('File: ') + file);
      con.custom(chalk.red.bold('Position: ') + 'Line:' + err.line + ' Column:' + err.column);
    };

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
Latest version published 2 months ago

Package Health Score

75 / 100
Full package analysis