{"name":"gulp-watch","version":"0.7.0-alpha2","description":"Watch, that actually is an endless stream","main":"index.js","keywords":["gulp","watch","gulpplugin"],"scripts":{"test":"jshint && mocha --reporter spec -t 5000 -s 2000","coverage":"istanbul cover node_modules/.bin/_mocha --report html -- -R spec -t 5000 -s 2000","coveralls":"istanbul cover _mocha --report lcovonly -- -R spec -t 5000 -s 2000 && cat ./coverage/lcov.info | coveralls"},"repository":{"type":"git","url":"git://github.com/floatdrop/gulp-watch.git"},"author":{"name":"Vsevolod Strukchinsky"},"license":"MIT","bugs":{"url":"https://github.com/floatdrop/gulp-watch/issues"},"devDependencies":{"coveralls":"~2.6.0","event-stream":"~3.0.20","glob-stream":"~3.1.7","gulp":"~3.3.4","gulp-grep-stream":"0.0.1","gulp-mocha":"~0.2.0","gulp-plumber":"~0.2.3","gulp-sass":"~0.4.0","istanbul":"~0.1.44","jshint":"^2.5.0","longjohn":"~0.2.2","mocha":"~1.14.0","mocha-lcov-reporter":"0.0.1","proxyquire":"^0.6.0","should":"~3.0.1","sinon":"^1.9.1","strip-ansi":"^0.2.1","touch":"0.0.3"},"dependencies":{"gulp-batch":"~0.4","gulp-util":"~2.2.6","vinyl-fs":"~0.3.0","glob2base":"~0.0.8","minimatch":"~0.3","gaze":"~0.6.4"},"engine":"node >= 0.10","gitHead":"dd37eae52e3332788720aa25ab49f01539a32ac5","homepage":"https://github.com/floatdrop/gulp-watch","_id":"gulp-watch@0.7.0-alpha2","_shasum":"df748a374214e61d08b7bdcf1b94b30e5599b5e1","_from":".","_npmVersion":"1.4.15","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"dist":{"shasum":"df748a374214e61d08b7bdcf1b94b30e5599b5e1","tarball":"http://registry-npm.ywwl.com/gulp-watch/download/gulp-watch-0.7.0-alpha2.tgz","integrity":"sha512-YaEBPRc5YIxEfH1YNNYAKjnwTvsU0zc2bAoJaRrmcQVAUJKsbJ+255n2mk+IZBPBugAipLwJCcVngsEuZoRGaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCty73qVhVSOT2l5dXDV/2qwZ8SPBmOYwnc5c0G/Qr9MQIgA8l38FtgJtP1qgK4WZmd6TpbdzNr4Bw/QJu6QsIIj3Q="}],"size":38288,"noattachment":false,"key":"/gulp-watch/-/gulp-watch-0.7.0-alpha2.tgz"},"directories":{},"readme":"# [gulp](https://github.com/gulpjs/gulp)-watch [![Build Status: Linux][travis-image]][travis-url] [![Build Status: Windows][appveyor-image]][appveyor-url] [![Dependency Status][depstat-image]][depstat-url]\n\nFile watcher that uses super-fast [chokidar](https://github.com/paulmillr/chokidar) and emits vinyl objects.\n\n## Installation\n\n```\nnpm install --save-dev gulp-watch\n```\n\n## Usage\n\n```js\nvar gulp = require('gulp'),\n    watch = require('gulp-watch');\n\ngulp.task('stream', function () {\n\t// Endless stream mode\n    return watch('css/**/*.css', { ignoreInitial: false })\n        .pipe(gulp.dest('build'));\n});\n\ngulp.task('callback', function () {\n\t// Callback mode, useful if any plugin in the pipeline depends on the `end`/`flush` event\n    return watch('css/**/*.css', function () {\n        gulp.src('css/**/*.css')\n            .pipe(gulp.dest('build'));\n    });\n});\n```\n\n> __Protip:__ until gulpjs 4.0 is released, you can use [gulp-plumber](https://github.com/floatdrop/gulp-plumber) to prevent stops on errors.\n\nMore examples can be found in [`docs/readme.md`](/docs/readme.md).\n\n## API\n\n### watch(glob, [options, callback])\n\nCreates a watcher that will spy on files that are matched by `glob` which can be a\nglob string or array of glob strings.\n\nReturns a pass through stream that will emit vinyl files\n(with additional `event` property) that corresponds to event on file-system.\n\n#### Callback `function(vinyl)`\n\nThis function is called when events happen on the file-system.\nAll incoming files that are piped in are grouped and passed to the `events` stream as is.\n\n * `vinyl` — is [vinyl](https://github.com/wearefractal/vinyl) object that corresponds to the file that caused the event. Additional `event` field is added to determine what caused changes.\n\nPossible events:\n\n * `add` - file was added to watch or created\n * `change` - file was changed\n * `unlink` - file was deleted\n\n#### Options\n\nThis object is passed to the [`chokidar` options](https://github.com/paulmillr/chokidar#api) directly. Options for [`gulp.src`](https://github.com/gulpjs/gulp/blob/master/docs/API.md#options) are also available. If you do not want content from `watch`, then add `read: false` to the `options` object.\n\n#### options.[ignoreInitial](https://github.com/paulmillr/chokidar#path-filtering)\nType: `Boolean`  \nDefault: `true`\n\n> Indicates whether chokidar should ignore the initial add events or not.\n\n#### options.events\nType: `Array`  \nDefault: `['add', 'change', 'unlink']`\n\nList of events, that should be watched by gulp-watch. Contains [event names from chokidar](https://github.com/paulmillr/chokidar#events).\n\n#### options.base\nType: `String`  \nDefault: `undefined`\n\nUse explicit base path for files from `glob`. Read more about `base` and `cwd` in [gulpjs docs](https://github.com/gulpjs/gulp/blob/master/docs/API.md#options).\n\n#### options.name\nType: `String`  \nDefault: `undefined`\n\nName of the watcher. If it is present in options, you will get more readable output.\n\n#### options.verbose\nType: `Boolean`  \nDefault: `false`\n\nThis option will enable verbose output.\n\n#### options.readDelay\nType: `Number`  \nDefault: `10`\n\nWait for `readDelay` milliseconds before reading the file.\n\n#### options.read\nType: `Boolean`  \nDefault: `true`\n\nSetting this to `false` will return `file.contents` as null and not read the file at all. Most useful as an optimization if your plugins pipeline doesn't make use of the file contents (e.g. `gulp-clean`), or to avoid reading the file twice if you use `gulp.src()` inside the callback instead of the file object that is passed as argument.\n\n### Methods\n\nReturned `Stream` from constructor has some useful methods:\n\n * `add(path / paths)`\n * `unwatch(path / paths)`\n * `close()`\n\n### Events\n\nAll events from [chokidar](http://npmjs.com/chokidar):\n\n * `add`, `change`, `unlink`, `addDir`, `unlinkDir`, `error`, `ready`, `raw`\n\n\n### [Changelog](https://github.com/floatdrop/gulp-watch/releases)\n\n## License\n\nMIT (c) 2014 Vsevolod Strukchinsky (floatdrop@gmail.com)\n\n[npm-url]: https://npmjs.org/package/gulp-watch\n[npm-image]: http://img.shields.io/npm/v/gulp-watch.svg?style=flat\n\n[travis-url]: https://travis-ci.org/floatdrop/gulp-watch\n[travis-image]: http://img.shields.io/travis/floatdrop/gulp-watch.svg?style=flat\n\n[appveyor-url]: https://ci.appveyor.com/project/floatdrop/gulp-watch/branch/master\n[appveyor-image]: https://ci.appveyor.com/api/projects/status/gmjwsqmxht1m131s/branch/master?svg=true\n\n[depstat-url]: https://david-dm.org/floatdrop/gulp-watch\n[depstat-image]: http://img.shields.io/david/floatdrop/gulp-watch.svg?style=flat\n","publish_time":1403002551973,"_cnpm_publish_time":1403002551973,"dist-tags":{"0.7.0-alpha2":"0.7.0-alpha2","0.7.0-alpha3":"0.7.0-alpha3","beta":"4.2.5","latest":"5.0.1"}}