Questions tagged [gulp-notify]

gulp-notify is a crossplatform notification plugin for gulp.

gulp-notify is a notification plugin for gulp. It can send messages to OS X Notification Center, Linux notifications (using notify-send application), Windows 8+ notifications (using native toaster) or use Growl as a fallback mechanism (using the node-notifier module). It is also possible to specify a custom notifier for gulp-notify.

Basic sample:

var notify = require("gulp-notify");

gulp.src("./src/test.ext")
  .pipe(notify("Hello!"));

gulp-notify npm package: https://www.npmjs.com/package/gulp-notify.

31 questions
20
votes
1 answer

Calling gulp-notify without using .pipe()

In my gulpfile.js I have a task that calls two other tasks. When the previous tasks have run, a notification should be triggered. var notify = require('gulp-notify'); gulp.task('build', ['build:js', 'build:css'], function() { console.log('hello',…
tobi-or-not
  • 566
  • 4
  • 13
8
votes
2 answers

How do I process a notification in gulp after all tasks are complete?

I am getting into the many streams of Gulp and have run across a confounding subject. I'd like to post a notification when all the tasks are actually complete. I see that the tasks are executed but running asynchronously by default. What if I want…
beauXjames
  • 8,222
  • 3
  • 49
  • 66
6
votes
3 answers

How to using Gulp plugin notify with del?

This should be easy... I am trying to create a notification that the del is done. Del = https://www.npmjs.com/package/del Notify = https://www.npmjs.com/package/gulp-notify I have: gulp.task('clean', function() { return…
RooksStrife
  • 1,647
  • 3
  • 22
  • 54
5
votes
1 answer

Gulp file running tasks and notifying twice

I've just started using gulp for the first time, required all the plugins I want to use and written the first task for sass compilation. It seems to work but there are two problems, firstly when I type gulp on the command line it seems to take 3 or…
jonhobbs
  • 26,684
  • 35
  • 115
  • 170
5
votes
3 answers

How can I get notified of errors during when piping to gulp browserify?

I am using browserify so I can use npm modules in my front end code, and gulp to do my build tasks. This works fine: var browserify = require('gulp-browserify'); gulp.task('js', ['clean'], function() { gulp …
mikemaccana
  • 110,530
  • 99
  • 389
  • 494
4
votes
0 answers

gulp-notify: [Error in notifier] Error in plugin 'gulp-notify' Command failed:

I'm trying to set up a basic workflow with Gulp and I'm getting the following error whenever I call gulp-notify. Design5-Joel:Sura-child design5$ gulp notify [14:00:17] Using gulpfile…
JoelS
  • 41
  • 4
3
votes
0 answers

How to pass gulp notifications out of docker?

I'm trying to expand my use of docker for my local environment (and learn more about docker in the process). But I have a question about getting notifications from gulp-notify back to my desktop. They show up in my terminal logs just fine. My…
aberkow
  • 330
  • 1
  • 10
3
votes
1 answer

Cant make gulp-notify to pop up a error message when gulp-jshint fail

So, was the whole day working on our new FE workflow, the main idea is to run a few tasks through a watcher, we will have our IDE's and a window with the browsers getting refreshed each time something change (scss, js, html, etc). So, we wont see…
avcajaraville
  • 9,041
  • 2
  • 28
  • 37
2
votes
1 answer

Display project folder path in the terminal with Gulp-Notify instead of entire path of project on hard drive

I am using gulp-notify to display extra information in the terminal when a task is run. Currently I can only get the full path on my HD and file name. I would prefer to only display the project folders as it is cleaner. function copyVideo (done) { …
MrThunder
  • 725
  • 12
  • 21
2
votes
0 answers

Gulp-notify not showing pop-up notifications

I'm using windows 8.1 and want to show error notifications with gulp-notify. Errors are printing in my console, but toasts just not appearing. gulp.task ('sass', function() { return multipipe( gulp.src('app/sass/**/*.sass'), sass(), …
Влад
  • 335
  • 1
  • 2
  • 16
2
votes
0 answers

Gulp-notify not showing toast notification

I have a custom error handler that's supposed to show a notification with gulp-notify and then log it in the console. module.exports = function () { return plumber(function (err) { notify({ title: 'Gulp Build Error', …
Jack
  • 140
  • 12
2
votes
1 answer

GLib-GObject-CRITICAL. Error when executing 'gulp' on fresh laravel project

Does anyone have a clue or any direction how to fix this error. Running CentOS 6.7 [07:42 PM]-[vagrant@machine1]-[/var/www/laracast] $ gulp [19:42:52] Using gulpfile /var/www/laracast/gulpfile.js [19:42:52] Starting 'default'... [19:42:52] Starting…
Alex Kalmikov
  • 1,865
  • 19
  • 20
2
votes
2 answers

Throw a gulp-notify message when gulp-eslint fails

I'm trying to use gulp-notify when my ESlint task detect errors, but I can't make it work, since gulp-notify needs to be referenced with a pipe after some Node.js stream. I can "make it work" partially with the following code: return…
2
votes
0 answers

How to use Gulp Task Notify only when JSHint succeeds

I have gulp running a watch. Part of that watch is to fire JSHint whenever I save a javascript file. I was able to get the task to notify the dev when a file fails and keep the watch working. However, I would also like to notify the dev if there was…
RiddlerDev
  • 7,370
  • 5
  • 46
  • 62
1
vote
1 answer

Gulp-Notify Error - dest.on is not a function

I am trying to use Gulp-Notify's error handling function, but I keep getting the following error: TypeError: dest.on is not a function I am following the instructions here: https://www.npmjs.com/package/gulp-notify#notifyonerror but keep getting…
Brad Ahrens
  • 4,864
  • 5
  • 36
  • 47
1
2 3