gulp-notify
Advanced tools
Comparing version
var gulp = require('gulp'); | ||
var notify = require('../'); | ||
var through = require('through'); | ||
var through = require('through2'); | ||
@@ -40,6 +40,9 @@ gulp.task("multiple", function () { | ||
gulp.src("../test/fixtures/*") | ||
.pipe(through(function () { | ||
.pipe(through.obj(function () { | ||
this.emit("error", "Something happend: Error message!") | ||
})) | ||
.on("error", notify.onError()); | ||
.on("error", notify.onError()) | ||
.on("error", function (err) { | ||
console.log("Error:", err); | ||
}) | ||
}); |
{ | ||
"name": "gulp-notify", | ||
"version": "0.3.0", | ||
"version": "0.3.2", | ||
"description": "A plugin for Gulp to send messages to Mac Notification Center", | ||
@@ -28,10 +28,10 @@ "keywords": [ | ||
"dependencies": { | ||
"gulp-util": ">=2.2.9", | ||
"node-notifier": ">=1.0.0-beta2", | ||
"through2": "~0.4.0" | ||
"node-notifier": "~1.1.0", | ||
"through2": "~0.4.0", | ||
"gulp-util": "~2.2.12" | ||
}, | ||
"devDependencies": { | ||
"mocha": "~1.14.0", | ||
"should": "~2.1.0", | ||
"gulp": "~3.2.2" | ||
"mocha": "~1.17.0", | ||
"should": "~3.0.1", | ||
"gulp": "~3.4.0" | ||
}, | ||
@@ -38,0 +38,0 @@ "engines": { |
@@ -96,2 +96,29 @@ # gulp-notify [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url] | ||
## Examples | ||
To see all examples run from root: | ||
```sh | ||
$ gulp --gulpfile examples/gulpfile.js --tasks | ||
[gulp] Using file /Users/example/gulp-notify/examples/gulpfile.js | ||
[gulp] Working directory changed to /Users/example/gulp-notify/examples | ||
[gulp] Tasks for /Users/example/gulp-notify/examples/gulpfile.js | ||
[gulp] ├── multiple | ||
[gulp] ├── one | ||
[gulp] ├── message | ||
[gulp] ├── function | ||
[gulp] ├── onlast | ||
[gulp] └── error | ||
``` | ||
To run an example: | ||
```sh | ||
$ gulp --gulpfile examples/gulpfile.js multiple | ||
[gulp] Using file /Users/example/gulp-notify/examples/gulpfile.js | ||
[gulp] Working directory changed to /Users/example/gulp-notify/examples | ||
[gulp] Running 'multiple'... | ||
[gulp] Finished 'multiple' in 3.75 ms | ||
``` | ||
## License | ||
@@ -98,0 +125,0 @@ |
Sorry, the diff of this file is not supported yet
17959
4.7%379
0.8%135
25%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated