gulp-notify
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -18,3 +18,2 @@ var through = require("through2"), | ||
var stream = this; | ||
stream.pause(); | ||
@@ -27,3 +26,2 @@ report(reporter, file, options, templateOptions, function (err) { | ||
} | ||
stream.resume(); | ||
callback(); | ||
@@ -30,0 +28,0 @@ }); |
{ | ||
"name": "gulp-notify", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "A plugin for Gulp to send messages to Mac Notification Center or Linux' notify-send", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -27,7 +27,17 @@ # gulp-notify [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url] | ||
gulp.src("./src/test.ext") | ||
.pipe(notify({ | ||
message: "Hello Gulp!" | ||
})); | ||
.pipe(notify("Hello Gulp!")); | ||
``` | ||
Or with template | ||
```javascript | ||
var notify = require("gulp-notify"); | ||
gulp.src("./src/test.ext") | ||
.pipe(notify("Found file: <%= file.relative %>!")); | ||
``` | ||
See [examples](examples/gulpfile.js) for more og the API section for various inputs. | ||
## API | ||
@@ -38,2 +48,4 @@ | ||
A message to notify per data on stream. | ||
The string can be a lodash template as | ||
it is passed through [gulp-util.template](https://github.com/gulpjs/gulp-util#templatestring-data). | ||
@@ -40,0 +52,0 @@ ### notify(Function) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23557
185
498